title: Histogram values of a Pandas Series
body: <p>I have some values in a Python Pandas Series (type: <code>pandas.core.series.Series</code>)</p>
  
  <pre><code>In [1]: series = pd.Series([0.0,950.0,-70.0,812.0,0.0,-90.0,0.0,0.0,-90.0,0.0,-64.0,208.0,0.0,-90.0,0.0,-80.0,0.0,0.0,-80.0,-48.0,840.0,-100.0,190.0,130.0,-100.0,-100.0,0.0,-50.0,0.0,-100.0,-100.0,0.0,-90.0,0.0,-90.0,-90.0,63.0,-90.0,0.0,0.0,-90.0,-80.0,0.0,])
  
  In [2]: series.min()
  Out[2]: -100.0
  
  In [3]: series.max()
  Out[3]: 950.0
  </code></pre>
  
  <p>I would like to get values of histogram (not necessary plotting histogram)... I just need to get the frequency for each interval.</p>
  
  <p>Let's say that my intervals are going from [-200; -150] to [950; 1000]</p>
  
  <p>so lower bounds are</p>
  
  <pre><code>lwb = range(-200,1000,50)
  </code></pre>
  
  <p>and upper bounds are</p>
  
  <pre><code>upb = range(-150,1050,50)
  </code></pre>
  
  <p>I don't know how to get frequency (the number of values that are inside each interval) now...
  I'm sure that defining lwb and upb is not necessary... but I don't know what
  function I should use to perform this!
  (after diving in Pandas doc, I think <code>cut</code> function can help me because it's a discretization problem... but I'm don't understand how to use it)</p>
  
  <p>After being able to do this, I will have a look at the way to display histogram (but that's an other problem)</p>