I have a column with values like 2023-06-13T15:11:24.020000+00:00
. I checked the format of this column after importing as a Pandas DF (imported from csv) and I see it is in object
format. How can I convert the column to the date format and remove timestamp and have values like 2023-06-13
or any other date format?
Asked
Active
Viewed 13 times
0

noonenine
- 41
- 7
-
`pd.to_datetime(df['col']).dt.normalize()` – mozway Jun 13 '23 at 18:22