metasyn.demo_data
- metasyn.demo_data(name='titanic')
Get a demonstration dataset as a prepared polars dataframe.
- There are eight options:
titanic (Included in pandas, but post-processed to contain more columns)
spaceship (CC-BY from https://www.kaggle.com/competitions/spaceship-titanic)
synthea_imaging (CC-BY from https://synthea.mitre.org/downloads)
fruit (very basic example data from Polars)
survey (columns from ESS round 11 Human Values Scale questionnaire for the Netherlands)
test (columns with all supported data types)
hospital (Example electronic health record hospital dataset)
druguse (Example dataset with answers to an open question on study participants’ daily drug use)
- Parameters:
name (
str) – Name of the demo dataset.- Return type:
DataFrame- Returns:
Polars dataframe with correct column types
References
European Social Survey European Research Infrastructure (ESS ERIC). (2024). ESS11 integrated file, edition 1.0 [Data set]. Sikt - Norwegian Agency for Shared Services in Education and Research. https://doi.org/10.21338/ess11e01_0