I am trying to plot the data in a loop, I am using the below code to build the plot. but Its running for all the loop, I can see the column name is getting printed for all th but its building the plot for only the last one. is there anything I have add extra to generate the plot for individual iteration?
for (index, colname) in enumerate(df): print(colname) counts = df[colname].value_counts(dropna=False) counts.plot.bar(title=colname, grid=True)