TimeSeriesDataset¶
This class extends a Python List
and represents multiple time series,
they can be univariate or multivariate (not implemented yet). Therefore, each
item in a TimeSeriesDataset has its own time index.
Thanks to its ability to handle multiple indices, this class provides a set of method to go from raw data, with unknown characteristics (frequencies, start, end, etc.), to clean data that is easy to process, model or analyze.
Warning
The aim of a TimeSeriesDataset object is to be immutable
Constructor¶
|
Defines a set of time series |
Methods¶
|
Create an empty TimeSeriesDataset object with a defined index and period |
|
Append a TimeSeries to TimeSeriesDataset |
|
Plot a TimeSeriesDataset |
|
Copy a TimeSeriesDataset |
|
Split a TimeSeriesDataset at a defined point and include the splitting point in both as in [start,…,at] and [at,…,end]. |
The TimeSeries in the TimeSeriesDataset are cut into chunks of length n |
|
|
Fill all values in each TimeSeries from a TimeSeriesDataset. |
|
Empty the values in each TimeSeries from a TimeSeriesDataset. |
|
Pad a TimeSeriesDataset until a given limit |
|
Remove NaNs from a TimeSeries start, end or both |
|
Merge two TimeSeriesDataset by the index of the TimeSeries |
|
Merge two TimeSeriesDatasets by the label of the TimeSeries in the TimeSeriesDatasets |
|
Returns a subset of the TimeSeriesDataset with randomly chosen n elements without replacement. |
|
Returns a subset of the TimeSeriesDataset with randomly chosen percentage elements without replacement. |
|
Randomizing the order of the TS in the TSD |
Processing¶
|
Apply function specialized for TimeSeriesDataset |
|
Convert the TimeSeries in a TimeSeriesDataset to a specified frequency. |
|
Groups values by a frequency for each TimeSeries in a TimeSeriesDataset. |
|
Wrapper around the Pandas interpolate() method. |
|
Normalize the TimeSeries in a TimeSeriesDataset with a given method |
|
Round the values of every TimeSeries in the TimeSeriesDataset with a defined number of digits |
|
Sort the TimeSeries of a TimeSeriesDataset by time stamps |
|
Regularize a TimeSeriesDataset so that all starting and ending timestamps are similar. |
Analysis¶
|
Minimum of all TimeSeries in TimeSeriesDataset |
|
Maximum of all TimeSeries in TimeSeriesDataset |
|
Means of all TimeSeries in TimeSeriesDataset |
|
Median of all TimeSeries in TimeSeriesDataset |
|
Skewness of all TimeSeries in TimeSeriesDataset |
|
Kurtosis of all TimeSeries in TimeSeriesDataset |
|
Describe a TimeSeriesDataset with the describe function from Pandas |
|
Get the first Timestamp of a all components of a TimeSeriesDataset |
|
Get the last Timestamp of a all components of a TimeSeriesDataset |
Get the tuple with the TimeSeries first and last index for all components in the TimeSeriesDataset |
|
Get the frequency of a each TimeSeries in a TimeSeriesDataset |
|
|
Get the duration for all TimeSeries in a TimeSeriesDataset |