Skip to content

Instantly share code, notes, and snippets.

@kipronokoech
Created August 12, 2020 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kipronokoech/1457b3bf4271cc31027bd40b8e5b7d96 to your computer and use it in GitHub Desktop.
Save kipronokoech/1457b3bf4271cc31027bd40b8e5b7d96 to your computer and use it in GitHub Desktop.
# Her most common words
common_her = pd.DataFrame(common_count_her,mylove_common,columns=["Her"]).sort_values(by="Her")
plt.figure(figsize=(8,6))
plt.barh(common_her.index, common_her["Her"], align='center', alpha=0.8,color="pink")
plt.yticks(mylove_common,mylove_common)
plt.xlabel('Words')
plt.title('Most Used Words(My Love)')
plt.show()
# Words I commonly used
common_self = pd.DataFrame(common_count_me,myself_common,columns=["Self"])
plt.figure(figsize=(8,6))
plt.barh(common_self.index, common_self["Self"], align='center', alpha=0.8)
plt.xlabel('Words')
plt.title('Most Used Words(Self)')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment