1#Python, pandas
2#Count missing values for each column of the dataframe df
3
4df.isnull().sum()
5
1 np.count_nonzero(df.isnull().values)
2 np.count_nonzero(df.isnull()) # also works
3
1null_cols = df.columns[df.isnull().all()]
2df.drop(null_cols, axis = 1, inplace = True)