panda getting nan code example Example 1: check for missing values by column in pandas df.isna().any() Example 2: find nan values in a column pandas df.isnull().sum().sum()