Skip to content

Commit 317267c

Browse files
committed
changed default value of cache parameter to True
1 parent 6d9b702 commit 317267c

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
@@ -402,7 +402,7 @@ def _adjust_to_origin(arg, origin, unit):
402402
def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
403403
utc=None, box=True, format=None, exact=True,
404404
unit=None, infer_datetime_format=False, origin='unix',
405-
cache=False):
405+
cache=True):
406406
"""
407407
Convert argument to datetime.
408408
@@ -483,12 +483,12 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
483483
origin.
484484
485485
.. versionadded:: 0.20.0
486-
cache : boolean, default False
486+
cache : boolean, default True
487487
If True, use a cache of unique, converted dates to apply the datetime
488488
conversion. May produce significant speed-up when parsing duplicate
489489
date strings, especially ones with timezone offsets.
490490
491-
.. versionadded:: 0.23.0
491+
.. versionchanged:: 0.25.0
492492
493493
Returns
494494
-------

0 commit comments

Comments
 (0)