Skip to content

hssm.load_data

hssm.load_data

load_data(dataset: str) -> pd.DataFrame

Load a built-in dataset as a pandas DataFrame.

Use hssm.list_data to see the names of the available datasets.

Parameters:

  • dataset (str) –

    Name of the dataset to load.

Raises:

  • ValueError

    If the provided dataset name does not match any of the available datasets, or if the dataset is known but its file is missing from the installation.

Returns:

  • DataFrame

    The loaded dataset.