Skip to content

PERF: using _reduce_axis1 to improve perf in df.sum,min, max with axis=1 #51474

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
jbrockmendel opened this issue Feb 18, 2023 · 0 comments
Open
Labels
Performance Memory or execution speed performance Reduction Operations sum, mean, min, max, etc.

Comments

@jbrockmendel
Copy link
Member

jbrockmendel commented Feb 18, 2023

DataFrame reductions with axis=1 can be expensive when there is more than 1 backing array. _reduce_axis1 improves on that for any/all. We should be able to do the same thing for sum, prod, min, and max, though it'll take more effort.

Might be a good fourth issue, not first.

@jbrockmendel jbrockmendel added Bug Needs Triage Issue that has not been reviewed by a pandas team member Performance Memory or execution speed performance Reduction Operations sum, mean, min, max, etc. and removed Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Memory or execution speed performance Reduction Operations sum, mean, min, max, etc.
Projects
None yet
Development

No branches or pull requests

1 participant