title: subtract hours in python using pandas
body: <p>I want to display the result by subtracting two-time slots into a fraction e.g 8.5 hours. At the moment I am getting the below output but I want to get 8 and if it was 8:30 for it to say 8.5. I am using Python Pandas</p>
  
  <pre><code>0 days 08:00:00
  </code></pre>
  
  <p><code>start time example: 8:00:00</code>
  <code>finish time example: 16:30:00</code></p>
  
  <pre><code>  g=file.start[0]
    h=file.finish[0]
    z=h-g
    print(z)
  </code></pre>
  
  <p>currentOutput</p>
  
  <pre><code>0 days 08:00:00
  </code></pre>