Changing date format of a dataframe /column
I solved; I creat a list and update the related column of the dataframe with the list.
a_list=datetime.datetime.fromtimestamp(int(time))
df[col]=a_list
for time in df[col]:
datetime.datetime.fromtimestamp(int(time))
Why is not updating directly the dataframe df[col]? My aim is to update one column of a data frame with new date format.