Anzahl der Spalten ohne fehlende Werte
null_cols = df.columns[df.isnull().all()]
df.drop(null_cols, axis = 1, inplace = True)
Lazy Lion
null_cols = df.columns[df.isnull().all()]
df.drop(null_cols, axis = 1, inplace = True)
null_cols = df.columns[df.isnull().any()]