count total nan values of each column code example
Example: count rows with nan pandas
np.count_nonzero(df.isnull().values)
np.count_nonzero(df.isnull()) # also works
np.count_nonzero(df.isnull().values)
np.count_nonzero(df.isnull()) # also works