Clean messy tabular data with pandas

8 steps · about 4 h 45 min · Intermediate

  1. Orient yourself in pandas (guide, pandas documentation, 35 min)

    Review the core objects and operations used throughout the workflow.

  2. Load data deliberately (guide, pandas documentation, 35 min)

    Choose parsing options instead of accepting accidental types.

  3. Inspect structure and values (guide, pandas documentation, 35 min)

    Use descriptive operations to locate suspicious columns and rows.

  4. Handle missing data (guide, pandas documentation, 40 min)

    Detect, preserve, fill or remove missing values intentionally.

  5. Clean text columns (guide, pandas documentation, 35 min)

    Normalise strings and extract structured values safely.

  6. Reshape tables (guide, pandas documentation, 40 min)

    Pivot, melt and reorganise observations into a useful layout.

  7. Join datasets and check matches (guide, pandas documentation, 40 min)

    Combine tables while watching keys, cardinality and unmatched rows.

  8. Detect duplicate labels (guide, pandas documentation, 25 min)

    Identify and resolve duplicate axes before trusting the output.