I need to convert my column with records like 'hh:mm:ss' to float format in order to make further calculations.
In excel it is done in very simple way, you just multiply 'hh:mm:ss' by 24, but in Python it doesn't work out. I'm new to Python, need your help.
Any idea?
My Dataframe:
list = ['01:36:01', '00:02:18', '02:59:40', '04:16:30']
Here is what I need to achieve:
lst = [['01:36:01', 1.600], ['00:02:18', 0.038] , ['02:59:40', 2.994], ['04:16:30', 4.275]]
df = pd.DataFrame(lst, columns = ['Time', 'Float'])
print(df)
Time Float
0 01:36:01 1.600
1 00:02:18 0.038
2 02:59:40 2.994
3 04:16:30 4.275