Skip to content

Instantly share code, notes, and snippets.

@bhishanpdl
Created September 2, 2018 22:29
Show Gist options
  • Save bhishanpdl/aee89cb97811924eecbd53711445cded to your computer and use it in GitHub Desktop.
Save bhishanpdl/aee89cb97811924eecbd53711445cded to your computer and use it in GitHub Desktop.
ax = users['gender'].value_counts().plot(kind='barh')
for p in ax.patches:
ax.annotate(str(int(p.get_width())), (p.get_x() + p.get_width(), p.get_y()), xytext=(-2, 4), textcoords='offset points', horizontalalignment='right')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment