ForeTiS.preprocess.DateCalenderFeatures

Module Contents

Functions

add_date_based_features(df)

Function adding date based features to dataset

add_counters(df, columns_for_counter, resample_weekly, ...)

Function adding counters for upcoming or past public holidays (according to event_lags)

ForeTiS.preprocess.DateCalenderFeatures.add_date_based_features(df)

Function adding date based features to dataset

Parameters:

df (pandas.DataFrame) – dataset for adding features

ForeTiS.preprocess.DateCalenderFeatures.add_counters(df, columns_for_counter, resample_weekly, event_lags, values_for_counter)

Function adding counters for upcoming or past public holidays (according to event_lags) with own counters for those specified in special_days

Parameters:
  • df (pandas.DataFrame) – dataset for adding features

  • resample_weekly (bool) – whether to resample weekly or not

  • columns_for_counter (list) –

  • event_lags (list) –

  • values_for_counter (list) –