105
105
Supported engines: "xlrd", "openpyxl", "odf", "pyxlsb".
106
106
Engine compatibility :
107
107
108
- - "xlrd" supports most old/new Excel file formats .
108
+ - "xlrd" supports old-style Excel files (.xls) .
109
109
- "openpyxl" supports newer Excel file formats.
110
110
- "odf" supports OpenDocument file formats (.odf, .ods, .odt).
111
111
- "pyxlsb" supports Binary Excel files.
112
112
113
113
.. versionchanged:: 1.2.0
114
114
The engine `xlrd <https://xlrd.readthedocs.io/en/latest/>`_
115
- is no longer maintained, and is not supported with
116
- python >= 3.9. When ``engine=None``, the following logic will be
117
- used to determine the engine.
115
+ now only supports old-style ``.xls`` files.
116
+ When ``engine=None``, the following logic will be
117
+ used to determine the engine:
118
118
119
119
- If ``path_or_buffer`` is an OpenDocument format (.odf, .ods, .odt),
120
120
then `odf <https://pypi.org/project/odfpy/>`_ will be used.
@@ -920,7 +920,7 @@ class ExcelFile:
920
920
"""
921
921
Class for parsing tabular excel sheets into DataFrame objects.
922
922
923
- Uses xlrd engine by default. See read_excel for more documentation
923
+ See read_excel for more documentation
924
924
925
925
Parameters
926
926
----------
@@ -933,17 +933,17 @@ class ExcelFile:
933
933
Supported engines: ``xlrd``, ``openpyxl``, ``odf``, ``pyxlsb``
934
934
Engine compatibility :
935
935
936
- - ``xlrd`` supports most old/new Excel file formats .
936
+ - ``xlrd`` supports old-style Excel files (.xls) .
937
937
- ``openpyxl`` supports newer Excel file formats.
938
938
- ``odf`` supports OpenDocument file formats (.odf, .ods, .odt).
939
939
- ``pyxlsb`` supports Binary Excel files.
940
940
941
941
.. versionchanged:: 1.2.0
942
942
943
943
The engine `xlrd <https://xlrd.readthedocs.io/en/latest/>`_
944
- is no longer maintained, and is not supported with
945
- python >= 3.9. When ``engine=None``, the following logic will be
946
- used to determine the engine.
944
+ now only supports old-style ``.xls`` files.
945
+ When ``engine=None``, the following logic will be
946
+ used to determine the engine:
947
947
948
948
- If ``path_or_buffer`` is an OpenDocument format (.odf, .ods, .odt),
949
949
then `odf <https://pypi.org/project/odfpy/>`_ will be used.
@@ -954,8 +954,10 @@ class ExcelFile:
954
954
then ``openpyxl`` will be used.
955
955
- Otherwise ``xlrd`` will be used and a ``FutureWarning`` will be raised.
956
956
957
- Specifying ``engine="xlrd"`` will continue to be allowed for the
958
- indefinite future.
957
+ .. warning::
958
+
959
+ Please do not report issues when using ``xlrd`` to read ``.xlsx`` files.
960
+ This is not supported, switch to using ``openpyxl`` instead.
959
961
"""
960
962
961
963
from pandas .io .excel ._odfreader import ODFReader
0 commit comments