@@ -272,6 +272,12 @@ parse_dates : boolean or list of ints or names or list of lists or dict, default
272
272
273
273
.. note ::
274
274
A fast-path exists for iso8601-formatted dates.
275
+
276
+ .. note ::
277
+ The ``infer_datetime_format `` is deprecated and will be removed in the future versions.
278
+ infer_datetime_format : boolean, default ``False ``
279
+ If ``True `` and parse_dates is enabled for a column, attempt to infer the
280
+ datetime format to speed up the processing.(this is deprecated and will be removed in a future version)
275
281
keep_date_col : boolean, default ``False ``
276
282
If ``True `` and parse_dates specifies combining multiple columns then keep the
277
283
original columns.
@@ -913,11 +919,12 @@ an exception is raised, the next one is tried:
913
919
914
920
Note that performance-wise, you should try these methods of parsing dates in order:
915
921
922
+ 1. Try to infer the format using ``infer_datetime_format=True `` (this is deprecated and will be removed in the future versions.).
916
923
917
- 1 . If you know the format, use ``pd.to_datetime() ``:
924
+ 2 . If you know the format, use ``pd.to_datetime() ``:
918
925
``date_parser=lambda x: pd.to_datetime(x, format=...) ``.
919
926
920
- 2 . If you have a really non-standard format, use a custom ``date_parser `` function.
927
+ 3 . If you have a really non-standard format, use a custom ``date_parser `` function.
921
928
For optimal performance, this should be vectorized, i.e., it should accept arrays
922
929
as arguments.
923
930
@@ -1647,6 +1654,7 @@ Options that are unsupported by the pyarrow engine which are not covered by the
1647
1654
* ``decimal ``
1648
1655
* ``iterator ``
1649
1656
* ``dayfirst ``
1657
+ * ``infer_datetime_format ``
1650
1658
* ``verbose ``
1651
1659
* ``skipinitialspace ``
1652
1660
* ``low_memory ``
@@ -6378,4 +6386,4 @@ The files ``test.pkl.compress``, ``test.parquet`` and ``test.feather`` took the
6378
6386
24009288 Oct 10 06:43 test_fixed.hdf
6379
6387
24009288 Oct 10 06:43 test_fixed_compress.hdf
6380
6388
24458940 Oct 10 06:44 test_table.hdf
6381
- 24458940 Oct 10 06:44 test_table_compress.hdf
6389
+ 24458940 Oct 10 06:44 test_table_compress.hdf
0 commit comments