|
149 | 149 | of dtype conversion.
|
150 | 150 | engine : str, default None
|
151 | 151 | If io is not a buffer or path, this must be set to identify io.
|
152 |
| - Supported engines: "xlrd", "openpyxl", "odf", "pyxlsb". |
| 152 | + Supported engines: "xlrd", "openpyxl", "odf", "pyxlsb", "calamine". |
153 | 153 | Engine compatibility :
|
154 | 154 |
|
155 | 155 | - "xlrd" supports old-style Excel files (.xls).
|
156 | 156 | - "openpyxl" supports newer Excel file formats.
|
157 | 157 | - "odf" supports OpenDocument file formats (.odf, .ods, .odt).
|
158 | 158 | - "pyxlsb" supports Binary Excel files.
|
| 159 | + - "calamine" supports Excel (.xls, .xlsx, .xlsm, .xlsb) |
| 160 | + and OpenDocument (.ods) file formats. |
159 | 161 |
|
160 | 162 | .. versionchanged:: 1.2.0
|
161 | 163 | The engine `xlrd <https://xlrd.readthedocs.io/en/latest/>`_
|
@@ -375,7 +377,7 @@ def read_excel(
|
375 | 377 | | Callable[[str], bool]
|
376 | 378 | | None = ...,
|
377 | 379 | dtype: DtypeArg | None = ...,
|
378 |
| - engine: Literal["xlrd", "openpyxl", "odf", "pyxlsb"] | None = ..., |
| 380 | + engine: Literal["xlrd", "openpyxl", "odf", "pyxlsb", "calamine"] | None = ..., |
379 | 381 | converters: dict[str, Callable] | dict[int, Callable] | None = ...,
|
380 | 382 | true_values: Iterable[Hashable] | None = ...,
|
381 | 383 | false_values: Iterable[Hashable] | None = ...,
|
@@ -414,7 +416,7 @@ def read_excel(
|
414 | 416 | | Callable[[str], bool]
|
415 | 417 | | None = ...,
|
416 | 418 | dtype: DtypeArg | None = ...,
|
417 |
| - engine: Literal["xlrd", "openpyxl", "odf", "pyxlsb"] | None = ..., |
| 419 | + engine: Literal["xlrd", "openpyxl", "odf", "pyxlsb", "calamine"] | None = ..., |
418 | 420 | converters: dict[str, Callable] | dict[int, Callable] | None = ...,
|
419 | 421 | true_values: Iterable[Hashable] | None = ...,
|
420 | 422 | false_values: Iterable[Hashable] | None = ...,
|
@@ -453,7 +455,7 @@ def read_excel(
|
453 | 455 | | Callable[[str], bool]
|
454 | 456 | | None = None,
|
455 | 457 | dtype: DtypeArg | None = None,
|
456 |
| - engine: Literal["xlrd", "openpyxl", "odf", "pyxlsb"] | None = None, |
| 458 | + engine: Literal["xlrd", "openpyxl", "odf", "pyxlsb", "calamine"] | None = None, |
457 | 459 | converters: dict[str, Callable] | dict[int, Callable] | None = None,
|
458 | 460 | true_values: Iterable[Hashable] | None = None,
|
459 | 461 | false_values: Iterable[Hashable] | None = None,
|
@@ -1418,13 +1420,15 @@ class ExcelFile:
|
1418 | 1420 | .xls, .xlsx, .xlsb, .xlsm, .odf, .ods, or .odt file.
|
1419 | 1421 | engine : str, default None
|
1420 | 1422 | If io is not a buffer or path, this must be set to identify io.
|
1421 |
| - Supported engines: ``xlrd``, ``openpyxl``, ``odf``, ``pyxlsb`` |
| 1423 | + Supported engines: ``xlrd``, ``openpyxl``, ``odf``, ``pyxlsb``, ``calamine`` |
1422 | 1424 | Engine compatibility :
|
1423 | 1425 |
|
1424 | 1426 | - ``xlrd`` supports old-style Excel files (.xls).
|
1425 | 1427 | - ``openpyxl`` supports newer Excel file formats.
|
1426 | 1428 | - ``odf`` supports OpenDocument file formats (.odf, .ods, .odt).
|
1427 | 1429 | - ``pyxlsb`` supports Binary Excel files.
|
| 1430 | + - ``calamine`` supports Excel (.xls, .xlsx, .xlsm, .xlsb) |
| 1431 | + and OpenDocument (.ods) file formats. |
1428 | 1432 |
|
1429 | 1433 | .. versionchanged:: 1.2.0
|
1430 | 1434 |
|
|
0 commit comments