count how many nan in 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