title: how to cut a serial numbers into intervals in python code?
body: <p>Cut divides the range of x into intervals and codes the values in x according to which interval they fall.i can get small groups with cut function in R,how can i do the same 
  job in python code ?</p>
  
  <pre><code>raw_data='
  82   68   86   94   89   63   77   76   84    89
  75   78   81   82   76   99   80   84   89    88
  60   83   72   83   85   56   86   68   75   100
  90   84   75   86   74   77   95   63   80    76
  100   43  76   81   79   74   96   52   69    86'
  data&lt;-scan(textConnection(raw_data)) 
  table(cut(data,include.lowest=TRUE,right=FALSE,breaks=c(0,60,70,80,90,100))
  </code></pre>
  
  <p>The output is :</p>
  
  <pre><code>[0,60)  [60,70)  [70,80)  [80,90) [90,100] 
     3        6       14       20        7 
  </code></pre>