Skip to content

Instantly share code, notes, and snippets.

@tommyhuang1
Created February 12, 2017 22:29
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/109e18c9e230f1facf141f01ad7485be to your computer and use it in GitHub Desktop.
Save tommyhuang1/109e18c9e230f1facf141f01ad7485be to your computer and use it in GitHub Desktop.
Pregabalin Scatter Plot
wikiD = map(lambda x: TextBlob(x),DataWithRating3.Review)
resultD=[]
for i in range(len(wikiD)):
k = wikiD[i].sentiment.polarity
resultD.append(k)
DataWithRating3['Polarity'] = resultD
import seaborn as sns
plt.scatter(DataWithRating3['Polarity'], DataWithRating3['Rating'],c='c')
plt.title('Pregabalin')
plt.xlabel('Polarity')
plt.ylabel('Rating')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment