Skip to content

feat(python): add LanceDataset.slice() method - #8059

Open
Sapnilb15 wants to merge 1 commit into
lance-format:mainfrom
Sapnilb15:fix-issue-1808
Open

feat(python): add LanceDataset.slice() method#8059
Sapnilb15 wants to merge 1 commit into
lance-format:mainfrom
Sapnilb15:fix-issue-1808

Conversation

@Sapnilb15

Copy link
Copy Markdown

Adds a slice(start, end, columns=None) convenience method, equivalent to take(list(range(start, end))) but implemented as a thin wrapper over scanner(offset=start, limit=end-start), reusing the existing offset/limit scan pushdown instead of materializing an index list.

Fixes #1808

Adds a slice(start, end, columns=None) convenience method, equivalent
to take(list(range(start, end))) but implemented as a thin wrapper over
scanner(offset=start, limit=end-start), reusing the existing offset/limit
scan pushdown instead of materializing an index list.

Fixes lance-format#1808
@github-actions github-actions Bot added A-python Python bindings enhancement New feature or request labels Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-python Python bindings enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add slice() method to LanceDataset

2 participants