Skip to content

Instantly share code, notes, and snippets.

@abhishek-shrm
Created April 10, 2020 12:22
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 abhishek-shrm/aa9f75108defc826ed970ae815d157e2 to your computer and use it in GitHub Desktop.
Save abhishek-shrm/aa9f75108defc826ed970ae815d157e2 to your computer and use it in GitHub Desktop.
df['text_standard']=df['reviews.text'].apply(lambda x: textstat.text_standard(x))
print('Text Standard of upvoted reviews=>',df[df['reviews.numHelpful']>1]['text_standard'].mode())
print('Text Standard of not upvoted reviews=>',df[df['reviews.numHelpful']<=1]['text_standard'].mode())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment