Calendar
polars_ts.features.calendar
Calendar feature extraction from datetime columns.
calendar_features(df, features=None, time_col='ds')
Extract calendar features from a datetime column.
Parameters
df
Input DataFrame.
features
List of calendar features to extract. Defaults to all available:
day_of_week, day_of_month, day_of_year, week,
month, quarter, year, hour, minute,
is_weekend.
time_col
Datetime column to extract features from.
Returns
pl.DataFrame Original DataFrame with calendar feature columns appended.