I have dataframe with two cols. Both of them are timestamp however one goes all the way to fff where other to the seconds. is there a way to get difference in minutes and seconds?
col1 col2
2:21:40.756 2:21:41
2:22:30.343 2:22:31
2:24:43.342 2:24:44
i have tried following:
col1= pd.todatetime(df.col1,format='%H:%M:%S.%f').dt.time
col2 = pd.todatetime(df.col2,format = '%H:%M:%S').dt.time
diff = col1-col2
how ever im getting error -: not supported from datetime.date to datetime.date