business-science / pytimetk

Time series easier, faster, more fun. Pytimetk.
https://business-science.github.io/pytimetk/
MIT License
696 stars 60 forks source link

fourier - Does not respect pandas groups sort #279

Closed mdancho84 closed 11 months ago

mdancho84 commented 12 months ago

Need to get this example working:

    import pandas as pd
    import pytimetk as tk

    df = tk.load_dataset('m4_daily', parse_dates=['date'])

   # Example 2 - Add Fourier transforms for groups
    fourier_df = (
        df
            .groupby("id")
            .augment_fourier(
                date_column='date',
                periods=[1, 7],
                max_order=1
            )
    )
    fourier_df
mdancho84 commented 11 months ago

Fixed