PandasDataset¶
- class torchtime.datasets.PandasDataset(path: Optional[str] = None, dataframe: Optional[DataFrame] = None, dimensions: Optional[List[str]] = None, labels: Optional[str] = None, **kwargs)[source]¶
Base class for creating datasets which are compatible with torchtime from
pandas.Dataframe
.- Parameters:
path (str) – The path to the pickle file containing the
pandas.Dataframe
to load.dataframe (pd.Dataframe) – The
pandas.Dataframe
to load.dimensions (list, optional) – The columns of the
pandas.Dataframe
which contain the individual dimensions of contained time series. IfNone
is given, all columns are considered to hold the timer series data.labels (str, optional) – The column of the pandas.Dataframe which contains the labels. If
None
is given, the data is assumed to have no labels.
Note
path
anddataframe
are mutually exclusive.