AddConstTransform¶
- class AddConstTransform(in_column: str, value: float, inplace: bool = True, out_column: Optional[str] = None)[source]¶
Bases:
etna.transforms.base.PerSegmentWrapper
AddConstTransform add constant for given series.
Init AddConstTransform.
- Parameters
in_column (str) – column to apply transform
value (float) – value that should be added to the series
inplace (bool) –
if True, apply add constant transformation inplace to in_column,
if False, add transformed column to dataset
out_column (Optional[str]) – name of added column. If not given, use
self.__repr__()
- Inherited-members
Methods
fit
(df)Fit transform on each segment.
fit_transform
(df)May be reimplemented.
inverse_transform
(df)Apply inverse_transform to each segment.
transform
(df)Apply transform to each segment separately.