I am new to python and Pandas. I have a pandas data frame like the one below:
 id   value
  0    10
  1    0
  2    1
  3    3
  4    3
  5    3
  6    5
How can I get a list of bins and the number of items that fall into each bin. For example, in this case, I want something like this
 { {range: 0-1, count: 2}, 
   {range: 2-3, count: 3}, 
   {range: 4-5, count: 1}
 }