Study
Pandas · Missing data
Detecting NaN with isna, counting missing values per column, dropna vs fillna, filling with group means, and interpolation.
- df.isna().sum() is the first thing to run on any new dataset.
- Filling with a group mean keeps more information than filling with one global value.