PerSegmentWrapper¶
- class PerSegmentWrapper(transform)[source]¶
Bases:
etna.transforms.base.Transform
Class to apply transform in per segment manner.
- Inherited-members
Methods
fit
(df)Fit transform on each segment.
fit_transform
(df)May be reimplemented.
Apply inverse_transform to each segment.
transform
(df)Apply transform to each segment separately.
- fit(df: pandas.core.frame.DataFrame) etna.transforms.base.PerSegmentWrapper [source]¶
Fit transform on each segment.
- Parameters
df (pandas.core.frame.DataFrame) –
- Return type