sktime.transformations.panel.reduce¶
-
class
sktime.transformations.panel.reduce.
Tabularizer
[source]¶ Bases:
sktime.transformations.base._PanelToTabularTransformer
A transformer that turns time series/panel data into tabular data.
This estimator converts nested pandas dataframe containing time-series/panel data with numpy arrays or pandas Series in dataframe cells into a tabular pandas dataframe with only primitives in cells. This is useful for transforming time-series/panel data into a format that is accepted by standard validation learning algorithms (as in sklearn).
-
inverse_transform
(X, y=None)[source]¶ Transform tabular pandas dataframe into nested dataframe.
- Parameters
X (pandas DataFrame) – Tabular dataframe with primitives in cells.
y (array-like, optional (default=None)) –
- Returns
Xt – Transformed dataframe with series in cells.
- Return type
pandas DataFrame
-
transform
(X, y=None)[source]¶ Transform nested pandas dataframe into tabular dataframe.
- Parameters
X (pandas DataFrame) – Nested dataframe with pandas series or numpy arrays in cells.
y (array-like, optional (default=None)) –
- Returns
Xt – Transformed dataframe with only primitives in cells.
- Return type
pandas DataFrame
-