Skip to content

Commit 178a091

Browse files
committed
DOC to_datetime warning about dayfirst strictness
1 parent f5d673f commit 178a091

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tseries/tools.py

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def to_datetime(arg, errors='ignore', dayfirst=False, utc=None, box=True,
6161
Errors are ignored by default (values left untouched)
6262
dayfirst : boolean, default False
6363
If True parses dates with the day first, eg 20/01/2005
64+
Warning: dayfirst=True is not strict, but will prefer to parse
65+
with day first (this is a known bug).
6466
utc : boolean, default None
6567
Return UTC DatetimeIndex if True (converting any tz-aware
6668
datetime.datetime objects as well)

0 commit comments

Comments
 (0)