Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas convert string to datetime

In [51]:
pd.to_datetime(df['I_DATE'])

Out[51]:
0   2012-03-28 14:15:00
1   2012-03-28 14:17:28
2   2012-03-28 14:50:50
Name: I_DATE, dtype: datetime64[ns]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #convert #string #datetime
ADD COMMENT
Topic
Name
5+2 =