_seasonal_split

_seasonal_split(timestamp: pandas.core.series.Series, freq: str, cycle: Union[Literal['hour'], Literal['day'], Literal['week'], Literal['month'], Literal['quarter'], Literal['year'], int]) pandas.core.frame.DataFrame[source]

Create a seasonal split into cycles of a given timestamp.

Parameters
  • timestamp (pandas.core.series.Series) – series with timestamps

  • freq (str) – frequency of dataframe

  • cycle (Union[Literal['hour'], typing.Literal['day'], typing.Literal['week'], typing.Literal['month'], typing.Literal['quarter'], typing.Literal['year'], int]) – period of seasonality to capture (see SeasonalPlotCycle)

Returns

result – dataframe with timestamps and corresponding cycle names and in cycle names

Return type

pd.DataFrame