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: LocalDataLoader

Load and expose the coffee prices CSV as a named signal series.

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 date and signal. 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:

signal series indexed by date. Returns an empty float series when no data is available.