Created
February 12, 2017 22:25
-
-
Save tommyhuang1/b38b78a55907ccb95f12ff1db0934291 to your computer and use it in GitHub Desktop.
Clonazepam Scatter Plot
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
wikiB = map(lambda x: TextBlob(x),DataWithRating1.Review) | |
resultB=[] | |
for i in range(len(wikiB)): | |
k = wikiB[i].sentiment.polarity | |
resultB.append(k) | |
DataWithRating1['Polarity'] = resultB | |
plt.scatter(DataWithRating1['Polarity'], DataWithRating1['Rating'],c='g') | |
plt.title('Clonazepam') | |
plt.ylabel('Rating') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment