Skip to content
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

Fix remove_columns in text-classification example #29351

Conversation

mariosasko
Copy link
Contributor

Dataset.remove_columns returns a new Dataset object instead of modifying the input dataset in-place.

Fixes huggingface/datasets#6700

@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.

@mariosasko mariosasko requested a review from ydshieh February 28, 2024 19:52
@huggingface huggingface deleted a comment from github-actions bot Mar 30, 2024
Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @mariosasko .

(This example script is added in 2023, not the example scripts existing since 2020. That is probably why we don't see any complain until now)

@ydshieh ydshieh requested review from ArthurZucker and removed request for ArthurZucker April 2, 2024 14:50
@ydshieh
Copy link
Collaborator

ydshieh commented Apr 2, 2024

@mariosasko Before I ping a core maintainer, could you make sure the doc will be updated on datasets side?

@mariosasko
Copy link
Contributor Author

@ydshieh I've just merged a fix in datasets.

@ydshieh ydshieh requested a review from ArthurZucker April 2, 2024 16:21
Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

Thanks both!

@ArthurZucker ArthurZucker merged commit fce52ce into huggingface:main Apr 2, 2024
8 checks passed
itazap pushed a commit that referenced this pull request May 14, 2024
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.

remove_columns is not in-place but the doc shows it is in-place
4 participants