Look before you model
Every minute spent in pandas before training pays back tenfold. The goal of tabular EDA is not to produce a beautiful notebook; it is to discover the surprises that would otherwise hide inside the model: skewed distributions, sentinel values, mislabeled categories, time gaps, duplicated keys, and the few rows that contain most of the signal.
The first ten things to check
- Row count and unique-key count.
- Null fraction per column.
- Cardinality of every categorical.
- Numerical summary (min, p25, median, p75, max) for every numeric.
- Sentinel values masquerading as numbers (-1, 999, 9999).
- Class balance for the target.
- Time range and gaps if there is a timestamp.
- Duplicated rows.
- Outliers in the target.
- Top correlations with the target (linear and rank).
The rule of suspicion
If a single feature seems too predictive on its own, it is probably leakage. If the target is too clean, it was probably already curated by a downstream system. Be suspicious before you celebrate.