title: How to subtract two time columns with timedelta (python)?
body: <p>I'm trying for hours to do a subtraction between this two time columns so I can see how long did it take to the other action happen:</p>
  
  <pre><code>In[1]:aumento_data_separada 
  Out[1]: Response_Time      Request_Time(when the client do a request)   
   0   00:56:58.612000    00:46:34.347000
   1   12:00:41.069000    12:00:32.603000
   2   18:05:02.776000    16:39:42.682000
   3   19:27:11.997000    17:33:05.589000 
  ...
  </code></pre>
  
  <p>This dataframe has more 392560 rows like these above. I'd like to do the operation in all of them. and creat a new column with the result.
  I tried reading the docs from timedelta, but I didn't understand it at all. 
  I did this -> <code>type(aumento_data_separada['Response_Time'].iloc[0])</code> and <code>type(aumento_data_separada['Request_Time'].iloc[0])</code> to see the type and it returned me a  <code>datetime.time</code>. I found out that I can't do operations within them because of the type. So I tried to convert them separately: <code>pd.to_datetime(aumento_data_separada['Request_Time'])</code> but it returns me the following error-> <code>object of type 'datetime.time' has no len()</code>.</p>
  
  <p>Here is the 1st error message and the code I tried -> <code>aumento_data_separada.Response_Time - aumento_data_separada.Request_Time</code> -
  returning <code>unsupported operand type(s) for -: 'datetime.time' and 'datetime.time'
  </code></p>