continuous_timeseries.pandas_accessors#
API for pandas accessors.
Classes:
| Name | Description |
|---|---|
SeriesCTAccessor |
|
Functions:
| Name | Description |
|---|---|
register_pandas_accessor |
Register the pandas accessors |
SeriesCTAccessor #
pd.Series accessors
For details, see pandas' docs.
Methods:
| Name | Description |
|---|---|
__init__ |
Initialise |
Attributes:
| Name | Type | Description |
|---|---|---|
metadata |
DataFrame
|
Get the metadata as a |
Source code in src/continuous_timeseries/pandas_accessors.py
__init__ #
__init__(pandas_obj: Series[Timeseries])
Initialise
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pandas_obj
|
Series[Timeseries]
|
Pandas object to use via the accessor |
required |
Source code in src/continuous_timeseries/pandas_accessors.py
register_pandas_accessor #
register_pandas_accessor(namespace: str = 'ct') -> None
Register the pandas accessors
For details, see pandas' docs.
We provide this as a separate function because we have had really bad experiences with imports having side effects and don't want to pass those on to our users.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
namespace
|
str
|
Namespace to use for the accessor |
'ct'
|