File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,9 @@ parse_dates : boolean or list of ints or names or list of lists or dict, default
275
275
infer_datetime_format : boolean, default ``False ``
276
276
If ``True `` and parse_dates is enabled for a column, attempt to infer the
277
277
datetime format to speed up the processing.
278
+
279
+ .. deprecated :: 2.0.0
280
+ A strict version of this argument is now the default, passing it has no effect.
278
281
keep_date_col : boolean, default ``False ``
279
282
If ``True `` and parse_dates specifies combining multiple columns then keep the
280
283
original columns.
@@ -916,12 +919,10 @@ an exception is raised, the next one is tried:
916
919
917
920
Note that performance-wise, you should try these methods of parsing dates in order:
918
921
919
- 1. Try to infer the format using ``infer_datetime_format=True `` (see section below).
920
-
921
- 2. If you know the format, use ``pd.to_datetime() ``:
922
+ 1. If you know the format, use ``pd.to_datetime() ``:
922
923
``date_parser=lambda x: pd.to_datetime(x, format=...) ``.
923
924
924
- 3 . If you have a really non-standard format, use a custom ``date_parser `` function.
925
+ 2 . If you have a really non-standard format, use a custom ``date_parser `` function.
925
926
For optimal performance, this should be vectorized, i.e., it should accept arrays
926
927
as arguments.
927
928
You can’t perform that action at this time.
0 commit comments