Skip to content

Commit bafe865

Browse files
committed
ENH: add calamine excel reader (see also pandas-dev#50581)
1 parent db27c36 commit bafe865

22 files changed

+238
-59
lines changed

ci/deps/actions-310.yaml

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

6161
- pip:
6262
- pyqt5>=5.15.6
63+
- python-calamine>=0.1.4
6364
- tzdata>=2022.1

ci/deps/actions-311-downstream_compat.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ dependencies:
7474
- py
7575
- pip:
7676
- pyqt5>=5.15.6
77+
- python-calamine>=0.1.4
7778
- tzdata>=2022.1

ci/deps/actions-311.yaml

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

6161
- pip:
6262
- pyqt5>=5.15.6
63+
- python-calamine>=0.1.4
6364
- tzdata>=2022.1

ci/deps/actions-39-minimum_versions.yaml

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

6363
- pip:
6464
- pyqt5==5.15.6
65+
- python-calamine=0.1.4
6566
- tzdata==2022.1

ci/deps/actions-39.yaml

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

6161
- pip:
6262
- pyqt5>=5.15.6
63+
- python-calamine>=0.1.4
6364
- tzdata>=2022.1

ci/deps/circle-310-arm64.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@ dependencies:
5858
- xlrd>=2.0.1
5959
- xlsxwriter>=3.0.3
6060
- zstandard>=0.17.0
61+
62+
- pip:
63+
- python-calamine>=0.1.4

doc/source/getting_started/install.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ xlrd 2.0.1 excel Reading Excel
337337
xlsxwriter 3.0.3 excel Writing Excel
338338
openpyxl 3.0.10 excel Reading / writing for xlsx files
339339
pyxlsb 1.0.9 excel Reading for xlsb files
340+
python-calamine 0.1.4 excel Reading for xls/xlsx/xlsb/ods files
340341
========================= ================== =============== =============================================================
341342

342343
HTML

doc/source/user_guide/io.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3436,7 +3436,9 @@ Excel files
34363436
The :func:`~pandas.read_excel` method can read Excel 2007+ (``.xlsx``) files
34373437
using the ``openpyxl`` Python module. Excel 2003 (``.xls``) files
34383438
can be read using ``xlrd``. Binary Excel (``.xlsb``)
3439-
files can be read using ``pyxlsb``.
3439+
files can be read using ``pyxlsb``. Also, all this formats can be read using ``python-calamine``,
3440+
but this library has some limitation and different behavior from other libraries,
3441+
for example, can't detect chartsheets.
34403442
The :meth:`~DataFrame.to_excel` instance method is used for
34413443
saving a ``DataFrame`` to Excel. Generally the semantics are
34423444
similar to working with :ref:`csv<io.read_csv_table>` data.

doc/source/whatsnew/v2.1.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ Other enhancements
164164
- Added :meth:`ExtensionArray.interpolate` used by :meth:`Series.interpolate` and :meth:`DataFrame.interpolate` (:issue:`53659`)
165165
- Added ``engine_kwargs`` parameter to :meth:`DataFrame.to_excel` (:issue:`53220`)
166166
- Added a new parameter ``by_row`` to :meth:`Series.apply` and :meth:`DataFrame.apply`. When set to ``False`` the supplied callables will always operate on the whole Series or DataFrame (:issue:`53400`, :issue:`53601`).
167+
- Added ``calamine`` as an engine to ``read_excel`` (:issue:`50395`)
167168
- Groupby aggregations (such as :meth:`DataFrameGroupby.sum`) now can preserve the dtype of the input instead of casting to ``float64`` (:issue:`44952`)
168169
- Improved error message when :meth:`DataFrameGroupBy.agg` failed (:issue:`52930`)
169170
- Many read/to_* functions, such as :meth:`DataFrame.to_pickle` and :func:`read_csv`, support forwarding compression arguments to lzma.LZMAFile (:issue:`52979`)

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,4 @@ dependencies:
117117
- sphinx-toggleprompt # conda-forge version has stricter pins on jinja2
118118
- typing_extensions; python_version<"3.11"
119119
- tzdata>=2022.1
120+
- python-calamine

0 commit comments

Comments
 (0)