functime-org / functime

Time-series machine learning at scale. Built with Polars for embarrassingly parallel feature extraction and forecasts on panel data.
https://docs.functime.ai
Apache License 2.0
1.02k stars 55 forks source link

small docs bug #177

Closed thomasaarholt closed 7 months ago

thomasaarholt commented 7 months ago

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)`