1nan_cols = [i for i in df.columns if df[i].isnull().any()]
2print("No. of columns containing null values")
3print(len(df.columns[df.isna().any()]))
4
5print("No. of columns not containing null values")
6print(len(df.columns[df.notna().all()]))
7
8print("Total no. of columns in the dataframe")
9print(len(df.columns))