Skip to content

Instantly share code, notes, and snippets.

@tommyhuang1
Created February 12, 2017 22:25
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 tommyhuang1/b38b78a55907ccb95f12ff1db0934291 to your computer and use it in GitHub Desktop.
Save tommyhuang1/b38b78a55907ccb95f12ff1db0934291 to your computer and use it in GitHub Desktop.
Clonazepam Scatter Plot
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