Skip to main content
Define your own functions to be used as date features
The date_features argument of MLForecast can take pandas date attributes as well as functions that take a pandas DatetimeIndex and return a numeric value. The name of the function is used as the name of the feature, so please use unique and descriptive names.
unique_iddsydayofweekdayofyeareven_daymonth_start_or_endis_monday
0id_02000-01-010.27440751FalseTrueFalse
1id_02000-01-021.35759562TrueFalseFalse
2id_02000-01-032.30138203FalseFalseTrue
3id_02000-01-043.27244214TrueFalseFalse
4id_02000-01-054.21182725FalseFalseFalse
5id_02000-01-065.32294736TrueFalseFalse