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)
null_cols = df.columns[df.isnull().any()]