title: How to add integer (seconds) to hh:mm:ss format in Python?
body: <p>I have the following data frame in python where am trying to compute column 'New time' by adding 'Duration' (which is in seconds) to the 'start_time'</p>
  
  <pre><code>Serial  start_date     start_time     Duration(seconds)  New time
      A   5/22/2017       10:37:24        216 
      A   5/22/2017       10:37:26        213 
      A   5/22/2017       10:37:29         3  
      A   5/22/2017       10:39:55         60 
      A   5/22/2017       10:51:50        380 
      A   5/22/2017       10:51:57        339 
  </code></pre>
  
  <p>I want to add duration into start_time. The duration is in seconds.
  'New time' is expected in hh:mm:ss format.</p>
  
  <p>I tried looking for similar queries in the forum but could not get around this.</p>
  
  <p>Below is the info </p>
  
  <pre><code>data.info()
  
  start_date         13661 non-null object
  start_time         13661 non-null object
  Duration           13661 non-null int64
  </code></pre>
  
  <p>I tried taking a cue from a similar problem in the forum, using datetime</p>
  
  <pre><code>data.newtime = data.start_time + datetime.timedelta(data.Duration)
  </code></pre>
  
  <p>when i execute this am getting the following error :     TypeError: unsupported type for timedelta days component: Series</p>
  
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-95-fdfac1490ba5&gt; in &lt;module&gt;()
  ----&gt; 1 data.newtime = data.start_time + datetime.timedelta(data.Duration)
  
  TypeError: unsupported type for timedelta days component: Series
  </code></pre>
  
  <p>Not sure how to go about it. New to python.</p>
  
  <p>Help appreciated
  TIA</p>