Skip to content

Support open-ended ranges, test ranges beyond the data - #118

Merged
davidanthoff merged 1 commit into
mainfrom
issue-fixes
Sep 1, 2026
Merged

davidanthoff merged 1 commit into
mainfrom
issue-fixes

Conversation

@davidanthoff

Copy link
Copy Markdown
Member

Works through the two remaining code-level issues:

  • Fixes Support "A3:A" style references? #70: readxl accepts ranges with the row number omitted on either end — "Sheet1!A3:A" reads from row 3 to the last used row of the sheet, "Sheet1!A:A" reads the whole column. The missing end row is resolved against the sheet's used dimensions at read time; malformed forms like "A4:" or ":C" now produce a clear error instead of an ArgumentError from parse.
  • Fixes Problem with missing values #49: regression tests proving that ranges extending beyond the used part of a sheet return NA-filled cells for both backends (the old xlrd backend threw a PyError here; the native backends have handled it since v1.0.0 — now it's pinned by tests).

All test items green locally for both backends, cross-backend parity included. Feature addition → suggest tagging as v1.1.0 (NEWS entry included; version bump left to you).

🤖 Generated with Claude Code

- readxl accepts ranges with the row number omitted on either end
  (fixes #70): "Sheet1!A3:A" reads from row 3 to the last used row of the
  sheet, "Sheet1!A:A" reads the whole column. Invalid forms like "A4:"
  or ":C" now give a clear error instead of an ArgumentError.
- Add regression tests showing that ranges extending beyond the used part
  of a sheet come back as NA-filled cells for both backends (fixes #49 —
  the xlrd backend used to throw a PyError here).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@davidanthoff
davidanthoff merged commit 1e4696a into main Sep 1, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support "A3:A" style references? Problem with missing values

1 participant