In my dataframe I have two columns with times in format "HH:MM:SS" but in string, and I need to create a new column on this dataframe that stores the time difference in minutes of these two columns.
I've tried to use timediff()
function but it wont work cause is not a date type, other methods that I saw only convert to "Month:day:year" etc... format, so...
Dataframe example:
Id time_1 time_2
1 "10:02:34" "10:22:00"
2 "00:20:07" "20:40:30"
3 "12:00:01" "10:15:30"
I want something like:
Id time_1 time_2 difference
1 "10:02:34" "10:22:00" ....
2 "00:20:07" "20:40:30" ....
3 "12:00:01" "10:15:30" ....