tseda.dataloader.hyndman_examples_data_loader module

Downloader for Hyndman-based example datasets used by tseda.

class tseda.dataloader.hyndman_examples_data_loader.HyndmanExamplesDataLoader(output_dir: str = 'data')[source]

Bases: object

Download and normalize Hyndman example files into the local data directory.

Set destination directory for downloaded example files.

DATASET_URLS = {'hyndman_arrivals_quarterly_japan.csv': 'https://raw.githubusercontent.com/rajivsam/tseda/main/data/hyndman_arrivals_quarterly_japan.csv', 'hyndman_goog_daily_close.csv': 'https://raw.githubusercontent.com/rajivsam/tseda/main/data/hyndman_goog_daily_close.csv', 'hyndman_hyndsight_daily_pageviews.csv': 'https://raw.githubusercontent.com/rajivsam/tseda/main/data/hyndman_hyndsight_daily_pageviews.csv', 'hyndman_sunspot_monthly_area.csv': 'https://raw.githubusercontent.com/rajivsam/tseda/main/data/hyndman_sunspot_monthly_area.csv', 'hyndman_usconsumption_quarterly_consumption.csv': 'https://raw.githubusercontent.com/rajivsam/tseda/main/data/hyndman_usconsumption_quarterly_consumption.csv'}
__init__(output_dir: str = 'data') None[source]

Set destination directory for downloaded example files.

download_and_prepare_one(file_name: str, source_url: str) Path[source]

Download one dataset from URL, normalize it, and write to output directory.

download_and_prepare_all() list[Path][source]

Download, normalize, and write all configured Hyndman example datasets.