I'm using python with pandas and datetime.
I have dataframe in csv file like that:
I too add new column called "Duration" by subtracting "Start date" from "End date".
what I have tried to do:
rides['Duration'] = end_time - start_time
duration = rides['Duration']
print(rides['Duration'])
and what I get is:
0 0 days 00:03:01
1 0 days 02:07:02
2 0 days 00:05:43
what I want to get is:
0 00:03:01
1 02:07:02
2 00:05:43
That is, I want to remove the "days" and show only the time.