count the number of missing values in each column code example Example: count missing values by column in pandas df.isna().sum()