File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -208,21 +208,13 @@ Pass ``errors='coerce'`` to convert invalid data to ``NaT`` (not a time):
208
208
:okexcept:
209
209
210
210
# this is the default, raise when unparseable
211
- to_datetime([' 2009-07- 31' , ' asd' ], errors = ' raise' )
211
+ to_datetime([' 2009/07/ 31' , ' asd' ], errors = ' raise' )
212
212
213
213
# return the original input when unparseable
214
- to_datetime([' 2009-07- 31' , ' asd' ], errors = ' ignore' )
214
+ to_datetime([' 2009/07/ 31' , ' asd' ], errors = ' ignore' )
215
215
216
216
# return NaT for input when unparseable
217
- to_datetime([' 2009-07-31' , ' asd' ], errors = ' coerce' )
218
-
219
-
220
- Take care, ``to_datetime `` may not act as you expect on mixed data:
221
-
222
- .. ipython :: python
223
- :okexcept:
224
-
225
- to_datetime([1 , ' 1' ])
217
+ to_datetime([' 2009/07/31' , ' asd' ], errors = ' coerce' )
226
218
227
219
Epoch Timestamps
228
220
~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments