title: How to remove microseconds from timedelta
body: <p>I have microseconds that I want to essentially truncate from a  pandas column. I tried something like <code>analyze_me['how_long_it_took_to_order'] = analyze_me['how_long_it_took_to_order'].apply(lambda x: x.replace(microsecond=0)</code> but to this error came up <code>replace() takes no keyword arguments</code>.</p>
  
  <p>For example: I want 00:19:58.582052  to become 00:19:58 or 00:19:58.58</p>
  
  <p><a href="https://i.stack.imgur.com/BZO5j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BZO5j.png" alt="enter image description here"></a></p>