Skip to content

Instantly share code, notes, and snippets.

@wandabwa2004
Created July 22, 2019 02:14
Show Gist options
  • Save wandabwa2004/012b15c5469c3e38bbd30539b245d0b9 to your computer and use it in GitHub Desktop.
Save wandabwa2004/012b15c5469c3e38bbd30539b245d0b9 to your computer and use it in GitHub Desktop.
print('5 random reviews with the highest positive sentiment polarity: \n')
cl = df.loc[df.polarity == 1, ['review_body']].sample(5).values
for c in cl:
print(c[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment