Created
August 12, 2020 09:36
-
-
Save kipronokoech/1457b3bf4271cc31027bd40b8e5b7d96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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