timeatlas.time_series.TimeSeries.split_in_chunks

TimeSeries.split_in_chunks(n: int) → List[timeatlas.time_series.time_series.TimeSeries]

Split a TimeSeries into chunks of length n

When the number of element in the TimeSeries is not a multiple of n, the last chunk will have a length smaller than n.

Parameters

n – length of the chunks

Returns

List of TimeSeries