|
327 | 327 | values. The options are `None` for the ordinary converter, |
328 | 328 | `high` for the high-precision converter, and `round_trip` for the |
329 | 329 | round-trip converter. |
330 | | -cache_dates : boolean, default False |
| 330 | +cache_dates : boolean, default True |
331 | 331 | If True, use a cache of unique, converted dates to apply the datetime |
332 | 332 | conversion. May produce significant speed-up when parsing duplicate |
333 | 333 | date strings, especially ones with timezone offsets. |
@@ -482,7 +482,7 @@ def _read(filepath_or_buffer: FilePathOrBuffer, kwds): |
482 | 482 | 'false_values': None, |
483 | 483 | 'converters': None, |
484 | 484 | 'dtype': None, |
485 | | - 'cache_dates': False, |
| 485 | + 'cache_dates': True, |
486 | 486 |
|
487 | 487 | 'thousands': None, |
488 | 488 | 'comment': None, |
@@ -584,7 +584,7 @@ def parser_f(filepath_or_buffer: FilePathOrBuffer, |
584 | 584 | keep_date_col=False, |
585 | 585 | date_parser=None, |
586 | 586 | dayfirst=False, |
587 | | - cache_dates=False, |
| 587 | + cache_dates=True, |
588 | 588 |
|
589 | 589 | # Iteration |
590 | 590 | iterator=False, |
@@ -1388,7 +1388,7 @@ def __init__(self, kwds): |
1388 | 1388 | self.tupleize_cols = kwds.get('tupleize_cols', False) |
1389 | 1389 | self.mangle_dupe_cols = kwds.get('mangle_dupe_cols', True) |
1390 | 1390 | self.infer_datetime_format = kwds.pop('infer_datetime_format', False) |
1391 | | - self.cache_dates = kwds.pop('cache_dates', False) |
| 1391 | + self.cache_dates = kwds.pop('cache_dates', True) |
1392 | 1392 |
|
1393 | 1393 | self._date_conv = _make_date_converter( |
1394 | 1394 | date_parser=self.date_parser, |
@@ -3184,7 +3184,7 @@ def _get_lines(self, rows=None): |
3184 | 3184 |
|
3185 | 3185 |
|
3186 | 3186 | def _make_date_converter(date_parser=None, dayfirst=False, |
3187 | | - infer_datetime_format=False, cache_dates=False): |
| 3187 | + infer_datetime_format=False, cache_dates=True): |
3188 | 3188 | def converter(*date_cols): |
3189 | 3189 | if date_parser is None: |
3190 | 3190 | strs = _concat_date_cols(date_cols) |
|
0 commit comments