Skip to content

Lazy column #7614

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Lazy column #7614

wants to merge 8 commits into from

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Jun 13, 2025

Same as #7564 but for Dataset, cc @TopCoder2K FYI

e.g. ds[col] now returns a lazy Column instead of a list

This way calling ds[col][idx] only loads the required data in memory

(bonus: also supports subfields access with ds[col][subcol][idx])

the breaking change will be for the next major release, which also includes removal of dataset scripts support

close #4180

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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.

Add some iteration method on a dataset column (specific for inference)
2 participants