If io is not a buffer or path, this must be set to identify io. Supported engines: “xlrd”, “openpyxl”, “odf”, “pyxlsb”. Engine compatibility :
• “xlrd” supports old-style Excel files (.xls).
• “openpyxl” supports newer Excel file formats.
• “odf” supports OpenDocument file formats (.odf, .ods, .odt).
• “pyxlsb” supports Binary Excel files.
Changed in version 1.2.0:
The engine
xlrd
now only supports old-style
.xls
files. When
engine=None
, the following logic will be used to determine the engine:
• If
path_or_buffer
is an OpenDocument format (.odf, .ods, .odt), then
odf
will be used.
• Otherwise if
path_or_buffer
is an xls format,
xlrd
will be used.
• Otherwise if
path_or_buffer
is in xlsb format,
pyxlsb
will be used.
New in version 1.3.0.
• Otherwise
openpyxl
will be used.
Changed in version 1.3.0.