Table Of Contents
Table Of Contents

gluonts.dataset.util module

gluonts.dataset.util.find_files(data_dir: pathlib.Path, predicate: Callable[pathlib.Path, bool] = <function true_predicate>) → List[pathlib.Path][source]
gluonts.dataset.util.to_pandas(instance: dict, freq: str = None) → pandas.core.series.Series[source]

Transform a dictionary into a pandas.Series object, using its “start” and “target” fields.

Parameters:
  • instance – Dictionary containing the time series data.
  • freq – Frequency to use in the pandas.Series index.
Returns:

Pandas time series object.

Return type:

pandas.Series

gluonts.dataset.util.true_predicate(*args) → bool[source]