I have a time column in my dataframe that has values like 20:14.4 and I am trying to convert it to seconds.
I have tried df['time'].str.split(':').apply(lambda x: int(x[0]) * 60 + int(x[1]))
but the milliseconds at the end would not let it work. The datatype is object.
Kindly help. enter image description here