Skip to content

Commit 9c36833

Browse files
committed
DEP: update python-calamine to 0.1.7
1 parent 0e8174f commit 9c36833

16 files changed

+22
-27
lines changed

ci/deps/actions-310.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies:
4646
- pyqt>=5.15.9
4747
- pyreadstat>=1.2.0
4848
- pytables>=3.8.0
49-
- python-calamine>=0.1.6
49+
- python-calamine>=0.1.7
5050
- pyxlsb>=1.0.10
5151
- s3fs>=2022.11.0
5252
- scipy>=1.10.0

ci/deps/actions-311-downstream_compat.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies:
4747
- pyqt>=5.15.9
4848
- pyreadstat>=1.2.0
4949
- pytables>=3.8.0
50-
- python-calamine>=0.1.6
50+
- python-calamine>=0.1.7
5151
- pyxlsb>=1.0.10
5252
- s3fs>=2022.11.0
5353
- scipy>=1.10.0

ci/deps/actions-311.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies:
4646
- pymysql>=1.0.2
4747
- pyreadstat>=1.2.0
4848
- pytables>=3.8.0
49-
- python-calamine>=0.1.6
49+
- python-calamine>=0.1.7
5050
- pyxlsb>=1.0.10
5151
- s3fs>=2022.11.0
5252
- scipy>=1.10.0

ci/deps/actions-39-minimum_versions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dependencies:
4848
- pyqt=5.15.9
4949
- pyreadstat=1.2.0
5050
- pytables=3.8.0
51-
- python-calamine=0.1.6
51+
- python-calamine=0.1.7
5252
- pyxlsb=1.0.10
5353
- s3fs=2022.11.0
5454
- scipy=1.10.0

ci/deps/actions-39.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies:
4646
- pyqt>=5.15.9
4747
- pyreadstat>=1.2.0
4848
- pytables>=3.8.0
49-
- python-calamine>=0.1.6
49+
- python-calamine>=0.1.7
5050
- pyxlsb>=1.0.10
5151
- s3fs>=2022.11.0
5252
- scipy>=1.10.0

ci/deps/circle-310-arm64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies:
4646
- pyqt>=5.15.9
4747
- pyreadstat>=1.2.0
4848
- pytables>=3.8.0
49-
- python-calamine>=0.1.6
49+
- python-calamine>=0.1.7
5050
- pyxlsb>=1.0.10
5151
- s3fs>=2022.11.0
5252
- scipy>=1.10.0

doc/source/getting_started/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ xlrd 2.0.1 excel Reading Excel
281281
xlsxwriter 3.0.5 excel Writing Excel
282282
openpyxl 3.1.0 excel Reading / writing for xlsx files
283283
pyxlsb 1.0.10 excel Reading for xlsb files
284-
python-calamine 0.1.6 excel Reading for xls/xlsx/xlsb/ods files
284+
python-calamine 0.1.7 excel Reading for xls/xlsx/xlsb/ods files
285285
========================= ================== =============== =============================================================
286286

287287
HTML

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dependencies:
4848
- pymysql>=1.0.2
4949
- pyreadstat>=1.2.0
5050
- pytables>=3.8.0
51-
- python-calamine>=0.1.6
51+
- python-calamine>=0.1.7
5252
- pyxlsb>=1.0.10
5353
- s3fs>=2022.11.0
5454
- scipy>=1.10.0

pandas/compat/_optional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"pyarrow": "10.0.1",
4040
"pyreadstat": "1.2.0",
4141
"pytest": "7.3.2",
42-
"python-calamine": "0.1.6",
42+
"python-calamine": "0.1.7",
4343
"pyxlsb": "1.0.10",
4444
"s3fs": "2022.11.0",
4545
"scipy": "1.10.0",

pandas/io/excel/_calamine.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,11 @@ def _convert_cell(value: _CellValueT) -> Scalar:
116116

117117
return value
118118

119-
rows: list[list[_CellValueT]] = sheet.to_python(skip_empty_area=False)
120-
data: list[list[Scalar]] = []
121-
122-
for row in rows:
123-
data.append([_convert_cell(cell) for cell in row])
124-
if file_rows_needed is not None and len(data) >= file_rows_needed:
125-
break
119+
rows: list[list[_CellValueT]] = sheet.to_python(
120+
skip_empty_area=False, nrows=file_rows_needed
121+
)
122+
data: list[list[Scalar]] = [
123+
[_convert_cell(cell) for cell in row] for row in rows
124+
]
126125

127126
return data

0 commit comments

Comments
 (0)