I have a dataframe(df), like the following
Column1 Column2 ...
0 1 1
1 Null 1
.
.
I want to plot the count of null values in each column
Currently, I am doing
df.isnull().sum().plot.bar()
plt.show()
The problem with this is there are about 180 columns and most of them have 0 null values, I want to ignore such columns while plotting.
I tried the following which doesn't seem to work
df_null = df.loc[: ,df.isnull().sum() > 0]
df_null.plot()


