title: How Do I Format a pandas timedelta object?
body: <p>I am using <em>pandas</em> <code>timedelta</code> objects to keep track of split times in a sports related data set using the following sort of construction:</p>
  
  <pre><code>import pandas as pd
  pd.to_timedelta("-0:0:1.0")
  </code></pre>
  
  <p>This natively reports as:</p>
  
  <p><code>-1 days +23:59:59</code></p>
  
  <p>I can get the raw seconds count using <code>pd.to_timedelta("-0:0:1.0").total_seconds()</code> but that is unwieldy where the negative amount is in minutes or hours:</p>
  
  <p>For the expression:</p>
  
  <pre><code>pd.to_timedelta("-1:2:3.0")
  </code></pre>
  
  <p>how can I get the report formatted as<code>"-1:2:3.0</code>, or <code>-1 hour, 2 minutes, 3 seconds</code>, from the <code>timedelta</code> object, rather than in the form <code>-3723.0000000000005</code> (with a float error) or <code>-1 days +22:57:57</code>?</p>