I can have stored a list of timestamp (in milliseconds) in one column in a dataframe. so i can call them with the following code:
dataframename['columnname']
gives me something like:
0 1512734400000
1 1512738000000
2 1512741600000
...
498 1514527200000
499 1514530800000
I want to convert all of them in to a readable format. I can do it with the following code:
for x in range(len(dataframename["columnname"])):
dataframename['columnname'][x] = datetime.datetime.fromtimestamp(dataframename['columnname'][x]/1000).strftime('%Y-%m-%d %H:%M:%S')
However, this is taking too much time. Is there a quicker way of doing it?
Thank you in advance for anyone who is answering the question.