Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

@lhoestq lhoestq merged commit 9dd00c4 into main Jun 17, 2025
14 of 15 checks passed
@lhoestq lhoestq deleted the lazy-column branch June 17, 2025 13:08
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)

3 participants