title: How to extract a frequency distribution table (histogram) in python
body: <p>New and fresh faced in using python and first time posting here!  I have looked and cannot seem to find an answer to this one but I suspect it is an easy one....</p>
  <p>I am using python (via Spyder interface) and have some large data sets for some data measuring Relative Humidity.  I have successfully plotted histograms however I was hoping to extract this information in table format too so that I know exactly how many counts I have for bins of 10% increments.</p>
  <p>The bin range would be [10, 20, 30, 40, 50,60, 70, 80, 90, 100].  I have included a sample of data below to hopefully help.</p>
  <p>To summarise in this data set, above 80% RH is bad so I would like to be able to say 1A spends less time above 80% than 2A.</p>
  <p>Any help would be great!</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th style="text-align: left;">DateTime</th>
  <th style="text-align: center;">RH_1A</th>
  <th style="text-align: right;">RH_2A</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td style="text-align: left;">01/08/2018 01:00</td>
  <td style="text-align: center;">55.8</td>
  <td style="text-align: right;">69.2</td>
  </tr>
  <tr>
  <td style="text-align: left;">01/08/2018 02:00</td>
  <td style="text-align: center;">65.8</td>
  <td style="text-align: right;">79.2</td>
  </tr>
  <tr>
  <td style="text-align: left;">01/08/2018 03:00</td>
  <td style="text-align: center;">75.8</td>
  <td style="text-align: right;">89.2</td>
  </tr>
  <tr>
  <td style="text-align: left;">01/08/2018 04:00</td>
  <td style="text-align: center;">85.8</td>
  <td style="text-align: right;">89.2</td>
  </tr>
  <tr>
  <td style="text-align: left;">01/08/2018 05:00</td>
  <td style="text-align: center;">45.8</td>
  <td style="text-align: right;">89.2</td>
  </tr>
  <tr>
  <td style="text-align: left;">01/08/2018 06:00</td>
  <td style="text-align: center;">45.8</td>
  <td style="text-align: right;">49.2</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Many thanks,</p>
  <p>Lee</p>