Skip to content

Instantly share code, notes, and snippets.

@gchavez2
Last active August 16, 2019 22:12
Show Gist options
  • Save gchavez2/7f49bfef9311f1b3d5056ef25869af89 to your computer and use it in GitHub Desktop.
Save gchavez2/7f49bfef9311f1b3d5056ef25869af89 to your computer and use it in GitHub Desktop.
histogram_of_list.py
# Histogram of words per document in the first page
import matplotlib.pyplot as plt
plt.style.use("ggplot")
plt.hist([s for s in words_per_doc], bins=10)
plt.xlabel('Documents')
plt.ylabel('Number of words')
plt.show()
@tamecalm
Copy link

Any help to offer?

I tried installing the prostgresql database see error..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment