Skip to content

feat(python): support eager argument in load_sheet#385

Merged
lukapeschke merged 14 commits intoToucanToco:mainfrom
arnabanimesh:patch-1
Sep 11, 2025
Merged

feat(python): support eager argument in load_sheet#385
lukapeschke merged 14 commits intoToucanToco:mainfrom
arnabanimesh:patch-1

Conversation

@arnabanimesh
Copy link
Contributor

No description provided.

@arnabanimesh arnabanimesh marked this pull request as draft September 8, 2025 16:43
@arnabanimesh arnabanimesh marked this pull request as ready for review September 8, 2025 18:19
@arnabanimesh
Copy link
Contributor Author

arnabanimesh commented Sep 9, 2025

Need this PR to be merged first: pola-rs/polars#24411

EDIT: No longer relevant since we are not removing functions from the API

Copy link
Collaborator

@lukapeschke lukapeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supporting the eager argument on load_sheet is a great idea, but please do not delete existing functions from the API

@arnabanimesh
Copy link
Contributor Author

@lukapeschke now it should be okay

Copy link
Collaborator

@lukapeschke lukapeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last nit and we're good to go :) Thanks!

@lukapeschke lukapeschke changed the title refactor: Combine load_sheet and load_sheet_eager functions into one feat(python): support eager argument in load_sheet Sep 10, 2025
Copy link
Collaborator

@lukapeschke lukapeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@arnabanimesh
Copy link
Contributor Author

arnabanimesh commented Sep 10, 2025

if else branch is required since the returned PyCapsule needs to be converted to ExcelSheet type in lazy branch. I am reverting the change for now.

Will simplify the code in a future PR.

@arnabanimesh
Copy link
Contributor Author

arnabanimesh commented Sep 10, 2025

@lukapeschke Removing if else branch is not possible since we are using mypy

Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Copy link
Collaborator

@lukapeschke lukapeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arnabanimesh I removed the if/else branch and updated the typing. Thanks again for your contribution 🙂

@lukapeschke lukapeschke enabled auto-merge (squash) September 11, 2025 10:24
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
@lukapeschke lukapeschke merged commit e71d7c0 into ToucanToco:main Sep 11, 2025
23 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.

2 participants