functime-org / functime

Time-series machine learning at scale. Built with Polars for embarrassingly parallel feature extraction and forecasts on panel data.

Home Page:https://docs.functime.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

small docs bug

thomasaarholt opened this issue · comments

Describe the bug
The seasonality docs suggests the following code:

from functime.offsets import freq_to_sp
from functime.seasonality import add_fourier_terms

sp = freq_to_sp["1mo"][0]
X_new = X.pipe(add_fourier_terms(sp=sp, K=3)).collect()

Here, freq_to_sp["1mo"] should be freq_to_sp("1mo") (parenthesis, not square brackets)`