title: Converting float into range in Python
body: <p>I am doing some data analysis with pandas and am struggling to find a nice, clean way of summing up a range of numbers. I have a data frame with a column of floats, however I am not interested in the exact number, but a rough range. Ultimately I want to run a pivot and count how many values are in a certain range. Therefore ideally I would want to create a new column in my data frame, that converts my column of floats into a range. Say df[number] = 3.5, then df[range] = 0-10</p>
  
  <p>The ranges should be 0-10, 10-20, ... >100</p>
  
  <p>This may sound very arbitrary, but I've been struggling to find an answer on this. Many thanks</p>