@@ -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
@@ -1148,7 +1149,7 @@ To completely override the default values that are recognized as missing, specif
1148
1149
.. _io.navaluesconst :
1149
1150
1150
1151
The default ``NaN `` recognized values are ``['-1.#IND', '1.#QNAN', '1.#IND', '-1.#QNAN', '#N/A N/A', '#N/A', 'N/A',
1151
- 'n/a', 'NA', '<NA>', '#NA', 'NULL', 'null', 'NaN', '-NaN', 'nan', '-nan', ''] ``.
1152
+ 'n/a', 'NA', '<NA>', '#NA', 'NULL', 'null', 'NaN', '-NaN', 'nan', '-nan', 'None', ' '] ``.
1152
1153
1153
1154
Let us consider some examples:
1154
1155
@@ -3832,7 +3833,7 @@ OpenDocument Spreadsheets
3832
3833
The io methods for `Excel files `_ also support reading and writing OpenDocument spreadsheets
3833
3834
using the `odfpy <https://pypi.org/project/odfpy/ >`__ module. The semantics and features for reading and writing
3834
3835
OpenDocument spreadsheets match what can be done for `Excel files `_ using
3835
- ``engine='odf' ``.
3836
+ ``engine='odf' ``. The optional dependency 'odfpy' needs to be installed.
3836
3837
3837
3838
The :func: `~pandas.read_excel ` method can read OpenDocument spreadsheets
3838
3839
0 commit comments