Skip to content

Instantly share code, notes, and snippets.

Created May 27, 2019 06:32
What would you like to do?
import matplotlib.pyplot as plt
text_word_count = []
summary_word_count = []
# populate the lists with sentence lengths
for i in data['cleaned_text']:
for i in data['cleaned_summary']:
length_df = pd.DataFrame({'text':text_word_count, 'summary':summary_word_count})
length_df.hist(bins = 30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment