LogTransform¶
- class LogTransform(in_column: str, base: int = 10, inplace: bool = True, out_column: Optional[str] = None)[source]¶
Bases:
etna.transforms.base.PerSegmentWrapper
LogTransform applies logarithm transformation for given series.
Init LogTransform.
- Parameters
in_column (str) – column to apply transform
base (int) – base of logarithm to apply to series
inplace (bool) –
if True, apply logarithm transformation inplace to in_column,
if False, add column 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.