ehrapy.data.chronic_kidney_disease

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

Loads the Chronic Kidney Disease dataset

More details: https://archive.ics.uci.edu/ml/datasets/Chronic_Kidney_Disease

Preprocessing: https://github.com/theislab/ehrapy-datasets/tree/main/chronic_kidney_disease/chronic_kidney_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 Chronic Kidney Disease dataset

Examples

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