Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert the date column from string to a particular format in python

In [12]: pd.to_datetime(pd.Series(['05/23/2005']), format="%m/%d/%Y")
Out[12]:
0   2005-05-23
dtype: datetime64[ns]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #date #column #string #format #python
ADD COMMENT
Topic
Name
1+7 =