Skip to content

Commit d36715d

Browse files
committed
changed default value of cache parameter to True
1 parent 3e4f000 commit d36715d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/tools/datetimes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def _adjust_to_origin(arg, origin, unit):
448448
def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
449449
utc=None, box=True, format=None, exact=True,
450450
unit=None, infer_datetime_format=False, origin='unix',
451-
cache=False):
451+
cache=True):
452452
"""
453453
Convert argument to datetime.
454454
@@ -529,12 +529,12 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
529529
origin.
530530
531531
.. versionadded:: 0.20.0
532-
cache : boolean, default False
532+
cache : boolean, default True
533533
If True, use a cache of unique, converted dates to apply the datetime
534534
conversion. May produce significant speed-up when parsing duplicate
535535
date strings, especially ones with timezone offsets.
536536
537-
.. versionadded:: 0.23.0
537+
.. versionchanged:: 0.25.0
538538
539539
Returns
540540
-------

0 commit comments

Comments
 (0)