pandas how to find rows with missing values code example
Example 1: count missing values by column in pandas
df.isna().sum()
Example 2: pandas get rows with missing data
null_data = df[df.isnull().any(axis=1)]
df.isna().sum()
null_data = df[df.isnull().any(axis=1)]