0

I have a datafram like this: enter image description here

I want to plot the df.speed, its unit is 1. If I do df['speed'].hist(), the grouping would make them too broad, like this:

enter image description here

Here the grouping for each rectangle is 10, How can I make it into 1?

I only see there is a bin parameter, but it is the overall count of the groups.

ZK Zhao
  • 19,885
  • 47
  • 132
  • 206
  • pass in the `bins` kwarg with the bin edges you would like to use. – tacaswell Aug 10 '15 at 04:56
  • @tcaswell thanks for the prompt, now I find the solution: http://stackoverflow.com/questions/6986986/bin-size-in-matplotlib-histogram – ZK Zhao Aug 10 '15 at 06:05

0 Answers0