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