Question : how to convert the date column from string to a particular format in python
Answered by : weary-wolverine-jra8cpuft2zg
In [12]: pd.to_datetime(pd.Series(['05/23/2005']), format="%m/%d/%Y")
Out[12]:
0 2005-05-23
dtype: datetime64[ns]
Source : https://stackoverflow.com/questions/17134716/convert-dataframe-column-type-from-string-to-datetime-dd-mm-yyyy-format | Last Update : Wed, 30 Jun 21