_get_seasonal_in_cycle_num

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

Get number for each point within cycle in a series of timestamps.

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

  • cycle_name (pandas.core.series.Series) –

  • cycle (Union[Literal['hour'], typing.Literal['day'], typing.Literal['week'], typing.Literal['month'], typing.Literal['quarter'], typing.Literal['year'], int]) –

  • freq (str) –

Return type

pandas.core.series.Series