I have a data frame with 100's of column and would like to investigate the proportion of missing values by plotting graph.
I'm able to get the proportion using below code :
Code :
missing_data_in_df=pd.DataFrame({'NaN_Counts': df.isna().sum(), 'NaN_Proportions(%)': (df.isna().sum() / df.shape[0]) * 100}).sort_values(by='NaN_Counts', ascending=False)
missing_data_in_df.head()
Output :
NaN_Counts NaN_Proportions(%)
Col1 889061 99.757636
Col2 685843 76.955435
Col3 584612 65.596749
Col4 476524 53.468668
Col4 392318 44.020282
Now when trying to visualize using histogram -
Code :
missing_data_in_df.hist()
I'm getting output as -
Is there any way to get feature names of dataframe in x-axis ?

