Epoch value of time is converted as follows for a particular epoch value:
time.strftime("%H:%M:%S ", time.localtime(28000000000))
Out[82]: '07:16:40 '
But when I apply the above method to a column of epoch time in the dataset,
time.strftime("%H:%M:%S ", time.localtime(df1['d']))
I am getting following error:
TypeError: cannot convert the series to type 'float'
Where I am going wrong?
df1['d']
is epoch time duration which have data as follows in the column:
28000000000
16000000000
33000000000
28000000000
27000000000
22000000000
26000000000
22000000000
22000000000
22000000000
46000000000
I need the epoch time not the datetime
object format.