Skip to content

Commit 0db07b5

Browse files
author
Keshav Ramaswamy
committed
updated docstring in .to_datetime()
1 parent 96b364a commit 0db07b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tseries/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
270270
If a date that does not meet timestamp limitations, passing errors='coerce'
271271
will force to NaT. Furthermore this will force non-dates to NaT as well.
272272
273-
>>> pd.to_datetime('13000101', format='%Y%m%d')
273+
>>> pd.to_datetime('13000101', format='%Y%m%d', errors='ignore')
274274
datetime.datetime(1300, 1, 1, 0, 0)
275275
>>> pd.to_datetime('13000101', format='%Y%m%d', errors='coerce')
276276
NaT

0 commit comments

Comments
 (0)