ehrapy.data.heart_disease

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

Loads the Heart Disease Data Set

More details: http://archive.ics.uci.edu/ml/datasets/Heart+Disease

Preprocessing: https://github.com/theislab/ehrapy-datasets/blob/main/heart_disease/heart_disease.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 Heart Disease Data Set

Examples

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