title: Generate underlying distribution from bins in python
body: <p>I found a PDF document describing the income distribution in the US in 1978. Per income range I have the percentage of the population that falls in that income range. I'd like to generate the underlying distribution in python. The data looks something like this:</p>
  <pre><code>under 3000$: 6.2%
  $3000-4999$: 8.5%
  $5000-$6999: 7.6%
  </code></pre>
  <p>etc</p>
  <p>See the screenshot for a more detailed description.</p>
  <p><img src="https://i.stack.imgur.com/B8yoF.png" alt="Income bins" /></p>
  <p>I've found the function <code>scipy.stats.rv_histogram</code> that generates a distribution given a histogram, but I'm not sure how to create this initial histogram.</p>