timeatlas.time_series_dataset.TimeSeriesDataset.split_at

TimeSeriesDataset.split_at(timestamp: Union[str, pandas._libs.tslibs.timestamps.Timestamp]) → Tuple[timeatlas.time_series_dataset.time_series_dataset.TimeSeriesDataset, timeatlas.time_series_dataset.time_series_dataset.TimeSeriesDataset]

Split a TimeSeriesDataset at a defined point and include the splitting point in both as in [start,…,at] and [at,…,end].

Parameters

timestamp – str or Timestamp where to the TimeSeriesDataset will be split (e.g. “2019-12-31 00:00:00”)

Returns

a Tuple of TimeSeriesDataset ([start,…,at] and [at,…,end])