Hospital Dataset
Assess a hospital admissions dataset with mixed dtypes and PII.
Overview
A realistic hospital admissions extract with 30,000 rows. Combine profile() and assess() to plan a safe cleaning strategy.
Dataset
hospital.csv30,000 rows × 21 columnspatient_idagegenderadmission_datediagnosis...
Python code
hospital.py
python
import pandas as pd
import eazydatafix as edf
df = pd.read_csv("hospital.csv")
prof = edf.profile(df, sample=10_000)
report = edf.assess(df)
report.summary()Expected output
Python 3.11
>>> prof = edf.profile(df, sample=10_000)>>> prof.columns['age']ColumnProfile(age) min=0 max=104 mean=42.3