pywrdrb.utils.timeseries.subset_timeseries#
- pywrdrb.utils.timeseries.subset_timeseries(timeseries, start_date, end_date, end_inclusive=True)#
Take a subset of pd.DataFrame timeseries data between start_date and end_date.
- Parameters:
timeseries (pd.DataFrame) – The timeseries data.
start_date (str or pd.Timestamp) – The start date for the subset.
end_date (str or pd.Timestamp) – The end date for the subset.
end_inclusive (bool) – Whether the end date is inclusive.
- Returns:
The subset of the timeseries data.
- Return type:
data (pd.DataFrame)