ehrapy.data.mimic_2

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

Loads the MIMIC-II dataset.

More details: https://physionet.org/content/mimic2-iaccd/1.0/

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 MIMIC-II dataset

Examples

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