Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas change string column to datetime

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: #pandas #change #string #column #datetime
ADD COMMENT
Topic
Name
7+2 =