I have a pandas dataframe with one column containing times as a string.
d = {'Name': ['Joe', 'Bob'], 'Time': ['58:34', '1:02:17']}
df = pd.DataFrame(data=d)
I want to change the column to datetime so that I can calculate the seconds of each person. However, the issue I keep running into is that the hours have been removed from the first time so I get:
"time data '58:34' does not match format '%H:%M:%S' (match)
and a similar issue if I change the format to just minutes and seconds.