Skip to content

Instantly share code, notes, and snippets.

@tlkahn
Created December 9, 2015 00:44
Show Gist options
  • Save tlkahn/5d86ff64d5df8510d3bf to your computer and use it in GitHub Desktop.
Save tlkahn/5d86ff64d5df8510d3bf to your computer and use it in GitHub Desktop.
python histogram frequency
r = np.random.randn(1000)
x = range(1000)
tab = pd.DataFrame({"x":x, "r": r})
count, division = np.histogram(tab['r'], bins=100)
tab['r'].hist(bins=100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment