Jumlah kolom tanpa nilai yang hilang
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)
dfObj.isnull().sum()
dfObj.isnull().sum().sum()
cols_to_delete = df.columns[df.isnull().sum()/len(df) > .90]
df.drop(cols_to_delete, axis = 1, inplace = True)