I am new to python. I have been trying to convert datatype of date column from int64 to date in jupyter notebook but whenever I try something I get the format correct but all the rows in the file shows same date. I don't understand what's wrong.
Date 43390 43599 43605 43329 43330 43604 43601
After I use any function- for example: df["DATE2"] = pd.to_datetime(pd.Series(df["DATE"])) df[["DATE","DATE2"]].head()
I get this:
DATE DATE2 0 1970-01-01 00:00:00.000043390 1970-01-01 00:00:00.000043390 1 1970-01-01 00:00:00.000043599 1970-01-01 00:00:00.000043599 2 1970-01-01 00:00:00.000043605 1970-01-01 00:00:00.000043605 3 1970-01-01 00:00:00.000043329 1970-01-01 00:00:00.000043329 4 1970-01-01 00:00:00.000043330 1970-01-01 00:00:00.000043330