Example #1
0
def register_dataframe_accessor(name):
    """Decorator to register a custom `pandas.DataFrame` accessor on top of the `vbt` accessor."""
    return _register_accessor(name, Vbt_DFAccessor)
Example #2
0
def register_series_accessor(name):
    """Decorator to register a custom `pandas.Series` accessor on top of the `vbt` accessor."""
    return _register_accessor(name, Vbt_SRAccessor)
Example #3
0
def register_series_accessor(name):
    return _register_accessor(name, Vbt_SRAccessor)
Example #4
0
        def register_groupby_accessor(name):
            """Register custom accessor on DataFrameGroupBy."""

            return _register_accessor(name, DataFrameGroupBy)
Example #5
0
def register_dataframe_accessor(name):
    return _register_accessor(name, Vbt_DFAccessor)
Example #6
0
def register_geodataframe_accessor(name: str):
    from geopandas import GeoDataFrame

    return _register_accessor(name, GeoDataFrame)
Example #7
0
def register_geoseries_accessor(name: str):
    from geopandas import GeoSeries

    return _register_accessor(name, GeoSeries)
Example #8
0
def register_series_accessor(name: str) -> tp.Callable:
    """Decorator to register a custom `pd.Series` accessor on top of the `vbt` accessor."""
    return _register_accessor(name, Vbt_SRAccessor)
Example #9
0
def register_dataframe_accessor(name: str) -> tp.Callable:
    """Decorator to register a custom `pd.DataFrame` accessor on top of the `vbt` accessor."""
    return _register_accessor(name, Vbt_DFAccessor)