check for missing values in dataset pandas code example Example: count missing values by column in pandas df.isna().sum()