statsforecast.feature_engineering
mstl_decomposition
df
(pandas or polars DataFrame): DataFrame with columns [unique_id
, ds
, y
].model
(statsforecast MSTL): Model to use for the decomposition.freq
(str): Frequency of the data (pandas alias).h
(int): Forecast horizon.Tuple[DataFrame, DataFrame]
: A tuple containing:
X_df
.