|
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,
|
@@ -1394,7 +1394,7 @@ def __init__(self, kwds):
|
1394 | 1394 | self.tupleize_cols = kwds.get('tupleize_cols', False)
|
1395 | 1395 | self.mangle_dupe_cols = kwds.get('mangle_dupe_cols', True)
|
1396 | 1396 | self.infer_datetime_format = kwds.pop('infer_datetime_format', False)
|
1397 |
| - self.cache_dates = kwds.pop('cache_dates', False) |
| 1397 | + self.cache_dates = kwds.pop('cache_dates', True) |
1398 | 1398 |
|
1399 | 1399 | self._date_conv = _make_date_converter(
|
1400 | 1400 | date_parser=self.date_parser,
|
@@ -3190,7 +3190,7 @@ def _get_lines(self, rows=None):
|
3190 | 3190 |
|
3191 | 3191 |
|
3192 | 3192 | def _make_date_converter(date_parser=None, dayfirst=False,
|
3193 |
| - infer_datetime_format=False, cache_dates=False): |
| 3193 | + infer_datetime_format=False, cache_dates=True): |
3194 | 3194 | def converter(*date_cols):
|
3195 | 3195 | if date_parser is None:
|
3196 | 3196 | strs = _concat_date_cols(date_cols)
|
|
0 commit comments