timeatlas.time_series.TimeSeries.split_at

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

Split a TimeSeries 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 TimeSeries will be split (e.g. “2019-12-31 00:00:00”)

Returns

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