Skip to content

Hardcoded Data Fetcher

Bases: DataFetcherStrategy

Fetch hardcoded data.

This fetcher is used to make a dataframe from hardcoded data, so you can build a chart from it.

__init__(data)

Initialize the HardcodedDataFetcher.

PARAMETER DESCRIPTION
data

The hardcoded data.

TYPE: dict[str, list[Any]]

fetch_data()

Transform arbitrary data into a dataframe.

RETURNS DESCRIPTION
DataFrame

pd.DataFrame: The hardcoded data as a dataframe

invalidate_cache()

Hardcoded data is not cached

make_cache_key()

Hardcoded data is not cached