Skip to content

Commit b6701f0

Browse files
committed
ENH: add calamine excel reader (close #50395)
Co-author: Kostya Farber (#50581)
1 parent 4b456e2 commit b6701f0

20 files changed

+217
-52
lines changed

ci/deps/actions-310.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ dependencies:
5858

5959
- pip:
6060
- pyqt5>=5.15.6
61+
- python-calamine>=0.1.6
6162
- tzdata>=2022.1

ci/deps/actions-311-downstream_compat.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@ dependencies:
7373
- pip:
7474
- dataframe-api-compat>=0.1.7
7575
- pyqt5>=5.15.6
76+
- python-calamine>=0.1.6
7677
- tzdata>=2022.1

ci/deps/actions-311.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ dependencies:
5858

5959
- pip:
6060
- pyqt5>=5.15.6
61+
- python-calamine>=0.1.6
6162
- tzdata>=2022.1

ci/deps/actions-39-minimum_versions.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,5 @@ dependencies:
6161
- pip:
6262
- dataframe-api-compat==0.1.7
6363
- pyqt5==5.15.6
64+
- python-calamine==0.1.6
6465
- tzdata==2022.1

ci/deps/actions-39.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ dependencies:
5858

5959
- pip:
6060
- pyqt5>=5.15.6
61+
- python-calamine>=0.1.6
6162
- tzdata>=2022.1

ci/deps/circle-310-arm64.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ dependencies:
5656
- xlrd>=2.0.1
5757
- xlsxwriter>=3.0.3
5858
- zstandard>=0.17.0
59+
60+
- pip:
61+
- python-calamine>=0.1.6

doc/source/getting_started/install.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ xlrd 2.0.1 excel Reading Excel
281281
xlsxwriter 3.0.3 excel Writing Excel
282282
openpyxl 3.0.10 excel Reading / writing for xlsx files
283283
pyxlsb 1.0.9 excel Reading for xlsb files
284+
python-calamine 0.1.6 excel Reading for xls/xlsx/xlsb/ods files
284285
========================= ================== =============== =============================================================
285286

286287
HTML

doc/source/user_guide/io.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3453,7 +3453,8 @@ Excel files
34533453
The :func:`~pandas.read_excel` method can read Excel 2007+ (``.xlsx``) files
34543454
using the ``openpyxl`` Python module. Excel 2003 (``.xls``) files
34553455
can be read using ``xlrd``. Binary Excel (``.xlsb``)
3456-
files can be read using ``pyxlsb``.
3456+
files can be read using ``pyxlsb``. Also, all this formats can be read using ``python-calamine``,
3457+
but this library has some different behavior from other libraries (mostly for ``.ods``).
34573458
The :meth:`~DataFrame.to_excel` instance method is used for
34583459
saving a ``DataFrame`` to Excel. Generally the semantics are
34593460
similar to working with :ref:`csv<io.read_csv_table>` data.

doc/source/whatsnew/v2.2.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ enhancement2
2828

2929
Other enhancements
3030
^^^^^^^^^^^^^^^^^^
31-
-
31+
- Added ``calamine`` as an engine to ``read_excel`` (:issue:`50395`)
3232
-
3333

3434
.. ---------------------------------------------------------------------------

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,6 @@ dependencies:
115115
- pip:
116116
- dataframe-api-compat>=0.1.7
117117
- sphinx-toggleprompt # conda-forge version has stricter pins on jinja2
118+
- python-calamine>=0.1.6
118119
- typing_extensions; python_version<"3.11"
119120
- tzdata>=2022.1

0 commit comments

Comments
 (0)