text_html_output_2.png
col = 'Q4'
v2 = df[col].value_counts().reset_index()
v2 = v2.rename(columns={col: 'count', 'index': col})
v2 = v2.sort_values(by='count', ascending=False)
plt.figure(figsize=(20, 8))
barplot = plt.bar(v2.Q4, v2['count'], color='red')
for bar in barplot:
    yval = bar.get_height()
    plt.text(bar.get_x() + bar.get_width() / 2.0, yval, int(yval), va='bottom')
plt.title(' Distribution of Eduction')
plt.xticks(rotation=90)
plt.show()