TimeSeriesDataFrame.split_by_time¶
- TimeSeriesDataFrame.split_by_time(cutoff_time: Timestamp) Tuple[TimeSeriesDataFrame, TimeSeriesDataFrame] [source]¶
Split dataframe to two different
TimeSeriesDataFrame
s before and after a certaincutoff_time
.- Parameters:
cutoff_time (pd.Timestamp) – The time to split the current data frame into two data frames.
- Returns:
data_before (TimeSeriesDataFrame) – Data frame containing time series before the
cutoff_time
(excludecutoff_time
).data_after (TimeSeriesDataFrame) – Data frame containing time series after the
cutoff_time
(includecutoff_time
).