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(python): fix ufunc for unlimited column args #14328

Merged
merged 4 commits into from
Feb 7, 2024

Conversation

deanm0000
Copy link
Collaborator

fixes #10512
#14216

Since the ufunc only passes to __ufunc_array__ the number of args that are actually required, we can't reduce (see the linked issue for more details). Users must reduce themselves. As such, I took out the pyreduce and instead we can create structs automatically. Before this change, the usage of pyreduce just allowed for exactly 2 inputs but no more than 2 so it wasn't really reducing in the true sense of the word.

When this gets merged I'll revise #13392 this to incorporate the new capabilities.

Copy link
Collaborator Author

@deanm0000 deanm0000 left a comment

Choose a reason for hiding this comment

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

na

Copy link
Member

@ritchie46 ritchie46 left a comment

Choose a reason for hiding this comment

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

Nice, thank you

@ritchie46 ritchie46 merged commit 4827d73 into pola-rs:main Feb 7, 2024
11 checks passed
@deanm0000 deanm0000 deleted the ufunc_parameters branch August 26, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ufunc limited to 2 inputs
2 participants