count how many rows have na in pandas code example
Example 1: pandas df where row has na
df[df.isna().any(axis=1)]
Example 2: count rows with nan pandas
np.count_nonzero(df.isnull().values)
np.count_nonzero(df.isnull()) # also works