Skip to content

update python-calamine to 0.0.7 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/deps/actions-38-minimum_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ dependencies:

- pip:
- pyqt5==5.15.1
- python-calamine==0.0.6
- python-calamine==0.0.7
2 changes: 1 addition & 1 deletion pandas/compat/_optional.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"pyarrow": "6.0.0",
"pyreadstat": "1.1.2",
"pytest": "7.0.0",
"python-calamine": "0.0.6",
"python-calamine": "0.0.7",
"pyxlsb": "1.0.8",
"s3fs": "2021.08.0",
"scipy": "1.7.1",
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/excel/_calaminereader.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _convert_cell(value: ValueT) -> Scalar:

from python_calamine import get_sheet_data

rows = get_sheet_data(self.book, sheet)
rows = get_sheet_data(self.book, sheet, skip_empty_area=False)
data: list[list[Scalar]] = []

for row in rows:
Expand Down
8 changes: 4 additions & 4 deletions pandas/tests/io/excel/test_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,9 +901,9 @@ def test_corrupt_bytes_raises(self, engine):
"record; found b'foo'"
)
elif engine == "calamine":
import python_calamine
from python_calamine import CalamineError

error = python_calamine._python_calamine.CalamineError
error = CalamineError
msg = "Cannot detect file format"
else:
error = BadZipFile
Expand Down Expand Up @@ -1797,9 +1797,9 @@ def test_corrupt_files_closed(self, engine, read_ext):

errors = (BadZipFile, xlrd.biffh.XLRDError)
elif engine == "calamine":
import python_calamine
from python_calamine import CalamineError

errors = (python_calamine._python_calamine.CalamineError,)
errors = (CalamineError,)

with tm.ensure_clean(f"corrupt{read_ext}") as file:
Path(file).write_text("corrupt")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ all = ['beautifulsoup4>=4.9.3',
'pytest>=7.0.0',
'pytest-xdist>=2.2.0',
'pytest-asyncio>=0.17.0',
'python-calamine>=0.0.6',
'python-calamine>=0.0.7',
'python-snappy>=0.6.0',
'pyxlsb>=1.0.8',
'qtpy>=2.2.0',
Expand Down