I have a data frame which looks like this:
A
0 1900-01-01 08:00:00
1 1900-01-01 14:30:00
2 1900-01-01 17:00:00
3 1900-01-01 14:00:00
4 1900-01-01 19:00:00
Each of the values is a Timestamp:
<<<df.loc[0,"A"]
Timestamp('1900-01-01 08:00:00')
I'd like to create a new column where the values are datetime rather than Timestamp. I thought this was the way to do it:
df["A2"] = pd.to_datetime(df["A"])
But the new column is also a series of Timestamps:
A A2
0 1900-01-01 08:00:00 1900-01-01 08:00:00
1 1900-01-01 14:30:00 1900-01-01 14:30:00
2 1900-01-01 17:00:00 1900-01-01 17:00:00
3 1900-01-01 14:00:00 1900-01-01 14:00:00
4 1900-01-01 19:00:00 1900-01-01 19:00:00
<<<df.loc[0,"A2"]
Timestamp('1900-01-01 08:00:00')
What am I doing wrong?