title: Unsupported type for timedelta seconds component: numpy.int64
body: <p>I am using the <a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Timedelta.html" rel="nofollow noreferrer">timedelta function</a> from datetime package to convert seconds into hours and minutes format. </p>
  
  <p>Here's an example: </p>
  
  <pre><code>secs = timedelta(seconds = 30)
  print(secs)
  
  00:00:30 
  </code></pre>
  
  <p>When is run this on a pandas column that I need to convert, I run into the unsupported type error. It looks like this happens when it the function encounters a '0' and is not sure how to handle it, I think. </p>
  
  <pre><code>EmpComm = pd.DataFrame({
           'Duration (secs)':[3488, 2994,0, 0],
           'Duration (hh:mm)':['0:58:08','0:49:54',np.nan,np.nan],
  
  })
  print (EmpComm)
     Duration (secs) Duration (hh:mm)
  0             3488          0:58:08
  1             2994          0:49:54
  2                0              NaN
  3                0              NaN
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/tp8Ni.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tp8Ni.png" alt="Data sample"></a></p>
  
  <p>I am wondering why it isn't able to convert seconds = 0 to 00:00:00. Here's my code:</p>
  
  <pre><code>for i, row in EmpComm.iterrows():
  
      val = timedelta(seconds = EmpComm['Duration (secs)'].iloc[i])
      EmpComm['Duration (hh:mm)'][i] = val
  </code></pre>