title: Get total number of hours from a Pandas Timedelta?
body: <p>How can I get the total number of hours in a Pandas timedelta?</p>
  
  <p>For example:</p>
  
  <pre><code>&gt;&gt;&gt; td = pd.Timedelta('1 days 2 hours')
  &gt;&gt;&gt; td.get_total_hours()
  26
  </code></pre>
  
  <p>Note: as per the documentation, the <code>.hours</code> attribute will return the hours <em>component</em>:</p>
  
  <pre><code>&gt;&gt;&gt; td.hours
  2
  </code></pre>