From 5890a0db44e6b07c2033deca0d6a980f6417300f Mon Sep 17 00:00:00 2001 From: Tarun Sharma Date: Wed, 19 Oct 2016 14:54:48 -0500 Subject: [PATCH] DOC: fix documentation (issue #14448) --- pandas/tseries/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tseries/tools.py b/pandas/tseries/tools.py index 637e70b76de98..fa9fa581dca5a 100644 --- a/pandas/tseries/tools.py +++ b/pandas/tseries/tools.py @@ -267,7 +267,7 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False, If a date that does not meet timestamp limitations, passing errors='coerce' will force to NaT. Furthermore this will force non-dates to NaT as well. - >>> pd.to_datetime('13000101', format='%Y%m%d') + >>> pd.to_datetime('13000101', format='%Y%m%d', errors='ignore') datetime.datetime(1300, 1, 1, 0, 0) >>> pd.to_datetime('13000101', format='%Y%m%d', errors='coerce') NaT