ehrapy.data.mimic_3_demo¶
- ehrapy.data.mimic_3_demo(anndata=False, columns_obs_only=None)[source]¶
Loads the MIMIC-III demo dataset as a dictionary of Pandas DataFrames.
The MIMIC-III dataset comes in the form of 26 CSV tables. Although, it is possible to return one AnnData object per csv table, it might be easier to start with Pandas DataFrames to aggregate the desired measurements with Pandas SQL. https://github.com/yhat/pandasql/ might be useful. The resulting DataFrame can then be transformed into an AnnData object with
df_to_anndata()
.- Parameters:
- Return type:
- Returns:
A dictionary of AnnData objects or a dictionary of Pandas DataFrames
Examples
>>> import ehrapy as ep >>> dfs = ep.dt.mimic_3_demo()