statsmodels.tsa.deterministic.Seasonality.from_index

classmethod Seasonality.from_index(index: Union[Sequence[Hashable], pandas.core.indexes.datetimes.DatetimeIndex, pandas.core.indexes.period.PeriodIndex])statsmodels.tsa.deterministic.Seasonality[source]

Construct a seasonality directly from an index using its frequency.

Parameters
index{DatetimeIndex, PeriodIndex}

An index with its frequency (freq) set.

Returns
Seasonality

The initialized Seasonality instance.