I'm not sure if I want to include this - there may be other sorting options end users require that should be considered and thus kept outside, as is currently? - but it may be beneficial to add optional sorting functionality into the add_event_delta_* functions.
df_sorted = df.sort_values(by=[id_field, event_date_field])
I'm not sure if I want to include this - there may be other sorting options end users require that should be considered and thus kept outside, as is currently? - but it may be beneficial to add optional sorting functionality into the add_event_delta_* functions.