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

Re-apply input columns change #5008

Merged
merged 1 commit into from
Sep 22, 2022
Merged

Conversation

mariosasko
Copy link
Collaborator

@mariosasko mariosasko commented Sep 21, 2022

Fixes the filter + input_columns combination, which is used in the transformers examples for instance.

Revert #5006 (which in turn reverts #4971)

Fix #4858

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 21, 2022

The documentation is not available anymore as the PR was closed or merged.

@mariosasko mariosasko marked this pull request as ready for review September 21, 2022 15:31
Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

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

Thanks. Now the transformers CI should not be broken.

tests/test_arrow_dataset.py Show resolved Hide resolved
Comment on lines -2803 to -2804
if remove_columns:
remove_columns = list(set(remove_columns) & set(input_columns))
Copy link
Member

Choose a reason for hiding this comment

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

I guess this was the source of the issue with filter...

I'm wondering why this was introduced in:

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess the contributor misinterpreted the purpose of input_columns and remove_columns in that PR.

Copy link
Member

@lhoestq lhoestq left a comment

Choose a reason for hiding this comment

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

Thanks ! LGTM

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.

map() function removes columns when input_columns is not None
4 participants