Sahaj.blogs

Day page

14 Mar 2024

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.

Read the post →