Skip to content

Instantly share code, notes, and snippets.

@ymollard
Created May 26, 2020 16:32
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 ymollard/9350728f024dceed638d14f8bc292926 to your computer and use it in GitHub Desktop.
Save ymollard/9350728f024dceed638d14f8bc292926 to your computer and use it in GitHub Desktop.

Histogram and density plot

plt.hist(counts, bins=30) (where 30 is the number of desired bins)

otherwise with pandas: pd.Series(count).hist()
pd.Series(temperatures) - the occurrences variable is not needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment