ehrapy.data.statlog_heart

ehrapy.data.statlog_heart(encoded=False, columns_obs_only=None)[source]

Loads the Statlog (Heart) Data Set

More details: http://archive.ics.uci.edu/ml/datasets/Statlog+%28Heart%29

Preprocessing: https://github.com/theislab/ehrapy-datasets/blob/main/statlog_heart/statlog_heart.ipynb

Parameters:
  • encoded (bool, default: False) – Whether to return an already encoded object

  • columns_obs_only (dict[str, list[str]] | list[str] | None, default: None) – Columns to include in obs only and not X.

Return type:

AnnData

Returns:

AnnData object of the Statlog (Heart) Data Set

Examples

>>> import ehrapy as ep
>>> adata = ep.dt.statlog_heart(encoded=True)