I have a series of strings representing time values in different formats - these are track meet running times in various events.
There are 3 time formats in my series. A sample looks like this:
Times |
---|
1:50.24 |
1:51.88 |
49.35 |
13:58.97 |
2:39:05 |
I need to do math with these - I think I need to convert them to timedeltas.
When I try: pd.to_timedelta(df['Times'])
I get
ValueError: expected hh:mm:ss format before .
Is there a way to easily convert these strings into a common time datatype that I can do arithmetic with?