module statsforecast.feature_engineering
function 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:- train_df (pandas or polars DataFrame): Original dataframe with the ‘trend’ and ‘seasonal’ columns added.
- X_df (pandas or polars DataFrame): Future dataframe to be provided to the predict method through
X_df.

