0

I am trying to turn that number from a dataframe into a datetime, the column time['date'] looks like the following:

enter image description here

i tried the following:

df1["st_mtime"]=pd.to_datetime(df1["st_mtime"],unit="s")

so i am getting below error:

OutOfBoundsDatetime: cannot convert input -11644473600.0 with the unit 's'

I want it to be changed to dd/mm/yyyy HH:MM:SS.

James Z
  • 12,209
  • 10
  • 24
  • 44

0 Answers0