I have a data frame which contain two columns: time column df["Start_Time"] in the format of %H:%M:%S & a duration column df["Duration"] which shows the duration that was spent doing a specific activity.
This is a sample of the data:
Start_Time Duration
0 07:30:00 03:00
1 07:30:00 06:00
2 07:30:00 07:00
3 07:30:00 28:00
4 08:50:00 50:00
5 11:30:00 32:00
6 10:30:00 24:00
7 06:45:00 15:55
My end goal is to sum the duration to the start time, figure out the end_time & how many days we passed doing this activity.
The problem is I don't know how to convert the column Duration into time column. Duration is a string column. I know I can't use pd.to_datetime().
I tried using strftime but I had errors. Any ideas on how to convert the column duration ?