TimeSeriesDataFrame.slice_by_time#

TimeSeriesDataFrame.slice_by_time(start_time: Timestamp, end_time: Timestamp) TimeSeriesDataFrame[source]#

Select a subsequence from each time series between start (inclusive) and end (exclusive) timestamps.

Parameters
  • start_time (pd.Timestamp) – Start time (inclusive) of the slice for each time series.

  • end_time (pd.Timestamp) – End time (exclusive) of the slice for each time series.

Returns

ts_df – A new time series dataframe containing entries of the original time series between start and end timestamps.

Return type

TimeSeriesDataFrame