title: How can I dynamically create bins in Python?
body: <p>I have the following np array:</p>
  
  <pre><code>[['ID1', 922.63, 'Product 1'],
  ['ID1', 1001, 'Product 2'],
  ['ID1', 800, 'Product 1'],
  ['ID1', 922.63, 'Product 1'],
  ['ID1', 1001, 'Product 2'],
  ['ID2', 800, 'Product 1'],
  ['ID2', 922.63, 'Product 1'],
  ['ID2', 1001, 'Product 2'],
  ['ID3', 800, 'Product 1'],
  ['ID3', 700.63, 'Product 1'],
  ['ID3', 1200, 'Product 2'],
  ['ID3', 850, 'Product 1']]
  </code></pre>
  
  <p>The '2nd column' ($ amount) is what I care about.  I want to build a histogram of product 1 and product 2, but I want the bins to be sized by 100.  The actual data set I'm using has 75K rows and values that range from $1 to $200000.  I want to automatically create these 'buckets' for the values and then build a histogram. </p>
  
  <p>I thought it would be easy to find info on this using either pandas or numpy but I am either a newb and not able to understand other 'similar' solutions, or am just not finding what I'm looking for.  Seems like it should be straight forward.</p>