Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
def register_series_accessor(name):
    return _register_accessor(name, Vbt_SRAccessor)
Ejemplo n.º 4
0
        def register_groupby_accessor(name):
            """Register custom accessor on DataFrameGroupBy."""

            return _register_accessor(name, DataFrameGroupBy)
Ejemplo n.º 5
0
def register_dataframe_accessor(name):
    return _register_accessor(name, Vbt_DFAccessor)
Ejemplo n.º 6
0
def register_geodataframe_accessor(name: str):
    from geopandas import GeoDataFrame

    return _register_accessor(name, GeoDataFrame)
Ejemplo n.º 7
0
def register_geoseries_accessor(name: str):
    from geopandas import GeoSeries

    return _register_accessor(name, GeoSeries)
Ejemplo n.º 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)
Ejemplo n.º 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)