title: Find median of interval data in python
body: <p>I am exploring different python libraries and I wondering how to find approximate median value of the grouped data set. Here is a table for a reference.</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Age</th>
  <th>frequency</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1-10</td>
  <td>123</td>
  </tr>
  <tr>
  <td>10-20</td>
  <td>350</td>
  </tr>
  <tr>
  <td>20-30</td>
  <td>200</td>
  </tr>
  <tr>
  <td>30-40</td>
  <td>1700</td>
  </tr>
  <tr>
  <td>40-50</td>
  <td>360</td>
  </tr>
  <tr>
  <td>50-60</td>
  <td>60</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Is there any function or do I need to hard code the formula and then have a loop going over each row and column of the dataset ?</p>
  <p>Thanks in advance.</p>