Data cleaning pipeline
A documented, reproducible data cleaning pipeline from raw to analysis-ready.
- A messy dataset ready for cleaning
- Basic Python or R familiarity
Data researcher · 60–90 minutes
Most data analysis time is cleaning — but nobody documents it.
This runbook makes every cleaning step explicit, documented, and reversible.
Cleaning notebook
A Jupyter notebook with profiled data, documented transformations, and a before/after comparison.
Profile the raw data
10 minRun shape, dtypes, missing value counts, and basic statistics. Document everything before touching the data.
For each column with missing values: document the pattern, choose a strategy (drop, impute, flag), and justify the choice.
Standardize formats
15 minNormalize date formats, string casing, numeric units, and categorical labels across all columns.
Re-run the profile on cleaned data and compare with the original. Verify no unexpected rows were lost.
Document the pipeline
10 minWrite a summary cell listing every transformation applied, in order, with the rationale for each.
You should now have: Cleaning notebook.
- The data profile is documented before and after cleaning.
- Every missing value has a documented strategy and justification.
- The cleaned data validates against the expected schema.
PrivacyDo not upload raw datasets with PII to cloud tools. Anonymize or sample before using AI assistants for cleaning code review.