All Posts Create a Post  
0
votes
34
views
Negative time difference in Pandas
Posted at 3 weeks, 6 days ago / May 22, 2021, 6 a.m.

I get this strange result by substracting earlier time stamp for later one: pd.to_datetime('2021-05-21 06:00:00') - pd.to_datetime('2021-05-21 06:02:00') Output: Timedelta('-1 days +23:58:00') Expected Output: Timedelta('-0 days 00:02:00') What is the …

172 2 2 0