Audit a dataset before you analyse it
8 steps · about 3 h 20 min · Beginner
- Inventory columns, types and completeness (reference, pandas documentation, 20 min)
A compact structural summary reveals suspicious types and unexpectedly sparse fields.
- Summarise numeric and categorical distributions (reference, pandas documentation, 25 min)
Counts, quantiles and frequent values provide a quick first pass for impossible ranges.
- Inspect category frequencies (reference, pandas documentation, 20 min)
Rare spellings and unexpected labels often expose inconsistent coding or entry errors.
- Find repeated records with chosen keys (reference, pandas documentation, 20 min)
Define what counts as the same observation before removing anything.
- Compute targeted descriptive statistics (guide, pandas documentation, 35 min)
Move beyond a single summary table to statistics appropriate for each variable.
- Plot distributions and possible outliers (guide, pandas documentation, 25 min)
Box plots expose skew and extreme observations that deserve investigation, not automatic deletion.
- Cross-check related categories (reference, pandas documentation, 25 min)
Contingency tables reveal combinations that are rare, impossible or coded inconsistently.
- Make the import reproducible (guide, pandas documentation, 30 min)
Record parsing, type and missing-value choices so the audit produces the same table next time.