title: how to group by list ranges of value in python pandas
body: <p>I have following dataframe</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>name,value
  a,100
  b,200
  c,150
  d,300
  e,400
  f,200
  g,100</code></pre>
  </div>
  </div>
  </p>
  
  <p>i have list of ranges like [0-100,100-200,more than 200]</p>
  
  <p>based on this i have to take count of records in above dataframe.</p>
  
  <p>i need output like</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>category,count
  0-100,2
  100-200,3
  mor than 200,3</code></pre>
  </div>
  </div>
  </p>