, columns_obs_only=None)[source]#

Loads the raw diabetes-130 dataset

More details: [1]

Preprocessing: None except for the data preparation outlined on the link above.

  • encoded (bool) – Whether to return an already encoded object

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

Return type:



AnnData object of the Diabetes 130 dataset


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


[1] Beata Strack, Jonathan P. DeShazo, Chris Gennings, Juan L. Olmo, Sebastian Ventura, Krzysztof J. Cios, and John N. Clore, “Impact of HbA1c Measurement on Hospital Readmission Rates: Analysis of 70,000 Clinical Database Patient Records,” BioMed Research International, vol. 2014, Article ID 781670, 11 pages, 2014.