Skip to content

offsets

freq_to_sp(freq)

Return seasonal periods given offset alias.

Reference: https://robjhyndman.com/hyndsight/seasonal-periods/

Parameters:

Name Type Description Default
freq str

Supported offset aliases:

  • 1s (1 second)
  • 1m (1 minute)
  • 30m (30 minute)
  • 1h (1 hour)
  • 1d (1 day)
  • 1w (1 week)
  • 1mo (1 calendar month)
  • 3mo (1 calendar quarter)
  • 1y (1 calendar year)
required

Returns:

Name Type Description
sp list of int