Clean messy tabular data with pandas
8 steps · about 4 h 45 min · Intermediate
- Orient yourself in pandas (guide, pandas documentation, 35 min)
Review the core objects and operations used throughout the workflow.
- Load data deliberately (guide, pandas documentation, 35 min)
Choose parsing options instead of accepting accidental types.
- Inspect structure and values (guide, pandas documentation, 35 min)
Use descriptive operations to locate suspicious columns and rows.
- Handle missing data (guide, pandas documentation, 40 min)
Detect, preserve, fill or remove missing values intentionally.
- Clean text columns (guide, pandas documentation, 35 min)
Normalise strings and extract structured values safely.
- Reshape tables (guide, pandas documentation, 40 min)
Pivot, melt and reorganise observations into a useful layout.
- Join datasets and check matches (guide, pandas documentation, 40 min)
Combine tables while watching keys, cardinality and unmatched rows.
- Detect duplicate labels (guide, pandas documentation, 25 min)
Identify and resolve duplicate axes before trusting the output.