Audit a dataset before you analyse it

8 steps · about 3 h 20 min · Beginner

  1. Inventory columns, types and completeness (reference, pandas documentation, 20 min)

    A compact structural summary reveals suspicious types and unexpectedly sparse fields.

  2. Summarise numeric and categorical distributions (reference, pandas documentation, 25 min)

    Counts, quantiles and frequent values provide a quick first pass for impossible ranges.

  3. Inspect category frequencies (reference, pandas documentation, 20 min)

    Rare spellings and unexpected labels often expose inconsistent coding or entry errors.

  4. Find repeated records with chosen keys (reference, pandas documentation, 20 min)

    Define what counts as the same observation before removing anything.

  5. Compute targeted descriptive statistics (guide, pandas documentation, 35 min)

    Move beyond a single summary table to statistics appropriate for each variable.

  6. Plot distributions and possible outliers (guide, pandas documentation, 25 min)

    Box plots expose skew and extreme observations that deserve investigation, not automatic deletion.

  7. Cross-check related categories (reference, pandas documentation, 25 min)

    Contingency tables reveal combinations that are rare, impossible or coded inconsistently.

  8. 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.