tseda.dataloader.coffee_prices_data_loader module¶
Data loader for the ICO coffee prices dataset.
- class tseda.dataloader.coffee_prices_data_loader.CoffeePricesDataLoader(file_path: str = 'data/coffee_prices.csv')[source]¶
Bases:
LocalDataLoaderLoad and expose the coffee prices CSV as a named
signalseries.Configure the loader with the default coffee prices CSV path.
- Parameters:
file_path – Path to the coffee prices CSV file.
- __init__(file_path: str = 'data/coffee_prices.csv')[source]¶
Configure the loader with the default coffee prices CSV path.
- Parameters:
file_path – Path to the coffee prices CSV file.
- load_coffee_prices() pandas.DataFrame[source]¶
Load coffee prices and normalize expected column names.
- Returns:
DataFrame with columns
dateandsignal. Returns an empty DataFrame if source data cannot be loaded.
- get_series() pandas.Series[source]¶
Extract the signal series from the normalized coffee dataset.
- Returns:
signalseries indexed bydate. Returns an empty float series when no data is available.