I have a data frame which one of the column is in epoch time:
df1['timestamp']
is something like this:
1533009600000
1533013200000
1533016800000
timestamp object
I need to convert to human readable time stamp. I tried this:
import time
df1['timestamp']=time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(df1['timestamp']))
I get this error:
TypeError: cannot convert the series to <type 'float'>
what I am doing wrong here?