I am trying to work with some time series data that are in cumulative hours, however I am having trouble getting the times to convert to datetime correctly.
csv format
cumulative_time,temperature
01:03:10,30,
02:03:10,31,
...
22:03:10,30,
23:03:10,29,
24:03:09,29,
25:03:09,25,
etc
df['cumulative_time']=pd.to_datetime(df['cumulative_time'],format='%H:%M:%S').dt.time
keeps yielding the error:
time data '24:03:09' does not match format '%H:%M:%S'
Any thoughts on how to convert just times to datetime format, especially if the hours exceed 24 hours?