Transform¶
- class Transform[source]¶
Bases:
abc.ABC
,etna.core.mixins.BaseMixin
Base class to create any transforms to apply to data.
- Inherited-members
Methods
fit
(df)Fit feature model.
fit_transform
(df)May be reimplemented.
Inverse transforms dataframe.
transform
(df)Transform dataframe.
- abstract fit(df: pandas.core.frame.DataFrame) etna.transforms.base.Transform [source]¶
Fit feature model.
Should be implemented by user.
- Parameters
df (pandas.core.frame.DataFrame) –
- Return type
- fit_transform(df: pandas.core.frame.DataFrame) pandas.core.frame.DataFrame [source]¶
May be reimplemented. But it is not recommended.
- Parameters
df (pandas.core.frame.DataFrame) –
- Return type
pandas.core.frame.DataFrame