Skip to content

Commit 12eac47

Browse files
committed
changed default value of cache parameter to True
1 parent b48d1ff commit 12eac47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/tools/datetimes.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def _adjust_to_origin(arg, origin, unit):
411411
def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
412412
utc=None, box=True, format=None, exact=True,
413413
unit=None, infer_datetime_format=False, origin='unix',
414-
cache=False):
414+
cache=True):
415415
"""
416416
Convert argument to datetime.
417417
@@ -492,12 +492,12 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
492492
origin.
493493
494494
.. versionadded:: 0.20.0
495-
cache : boolean, default False
495+
cache : boolean, default True
496496
If True, use a cache of unique, converted dates to apply the datetime
497497
conversion. May produce significant speed-up when parsing duplicate
498498
date strings, especially ones with timezone offsets.
499499
500-
.. versionadded:: 0.23.0
500+
.. versionchanged:: 0.25.0
501501
502502
Returns
503503
-------

0 commit comments

Comments
 (0)