Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Getting the number of words by splitting them by a space
words_per_review = review_data.review_comment_message.apply(lambda x: len(x.split(" ")))
words_per_review.hist(bins = 100)
plt.xlabel('Review Length (words)')
plt.ylabel('Frequency')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment