|
160 | 160 | If converters are specified, they will be applied INSTEAD
|
161 | 161 | of dtype conversion.
|
162 | 162 | If you use ``None``, it will infer the dtype of each column based on the data.
|
163 |
| -engine : str, default None |
| 163 | +engine : {{'openpyxl', 'calamine', 'odf', 'pyxlsb', 'xlrd'}}, default None |
164 | 164 | If io is not a buffer or path, this must be set to identify io.
|
165 |
| - Supported engines: "xlrd", "openpyxl", "odf", "pyxlsb", "calamine". |
166 | 165 | Engine compatibility :
|
167 | 166 |
|
168 |
| - - ``xlr`` supports old-style Excel files (.xls). |
169 | 167 | - ``openpyxl`` supports newer Excel file formats.
|
170 |
| - - ``odf`` supports OpenDocument file formats (.odf, .ods, .odt). |
171 |
| - - ``pyxlsb`` supports Binary Excel files. |
172 | 168 | - ``calamine`` supports Excel (.xls, .xlsx, .xlsm, .xlsb)
|
173 | 169 | and OpenDocument (.ods) file formats.
|
| 170 | + - ``odf`` supports OpenDocument file formats (.odf, .ods, .odt). |
| 171 | + - ``pyxlsb`` supports Binary Excel files. |
| 172 | + - ``xlrd`` supports old-style Excel files (.xls). |
174 | 173 |
|
175 |
| - .. versionchanged:: 1.2.0 |
176 |
| - The engine `xlrd <https://xlrd.readthedocs.io/en/latest/>`_ |
177 |
| - now only supports old-style ``.xls`` files. |
178 |
| - When ``engine=None``, the following logic will be |
179 |
| - used to determine the engine: |
180 |
| -
|
181 |
| - - If ``path_or_buffer`` is an OpenDocument format (.odf, .ods, .odt), |
182 |
| - then `odf <https://pypi.org/project/odfpy/>`_ will be used. |
183 |
| - - Otherwise if ``path_or_buffer`` is an xls format, |
184 |
| - ``xlrd`` will be used. |
185 |
| - - Otherwise if ``path_or_buffer`` is in xlsb format, |
186 |
| - ``pyxlsb`` will be used. |
187 |
| -
|
188 |
| - .. versionadded:: 1.3.0 |
189 |
| - - Otherwise ``openpyxl`` will be used. |
190 |
| -
|
191 |
| - .. versionchanged:: 1.3.0 |
| 174 | + When ``engine=None``, the following logic will be used to determine the engine: |
192 | 175 |
|
| 176 | + - If ``path_or_buffer`` is an OpenDocument format (.odf, .ods, .odt), |
| 177 | + then `odf <https://pypi.org/project/odfpy/>`_ will be used. |
| 178 | + - Otherwise if ``path_or_buffer`` is an xls format, ``xlrd`` will be used. |
| 179 | + - Otherwise if ``path_or_buffer`` is in xlsb format, ``pyxlsb`` will be used. |
| 180 | + - Otherwise ``openpyxl`` will be used. |
193 | 181 | converters : dict, default None
|
194 | 182 | Dict of functions for converting values in certain columns. Keys can
|
195 | 183 | either be integers or column labels, values are functions that take one
|
|
0 commit comments