statsmodels.tsa.deterministic.Seasonality.from_index

classmethod Seasonality.from_index(index)[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.