Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
PERF: Implement groupby idxmax/idxmin in Cython #54234
PERF: Implement groupby idxmax/idxmin in Cython #54234
Changes from all commits
5acec90
60407c5
73927a7
6958c95
f1b9ad1
ec6a33b
cede8b4
03f30f6
9e4aabc
3e3f14b
fa941b2
bfc9cc9
212247b
bb65902
590b6d4
929d5e9
8043f29
d5f328b
056c590
c0c79ef
b2641a4
cbcca6d
03d4510
6e727b4
b56d49f
51432ec
6a4f51e
1268eac
448581a
f9bb55e
ff32210
57d7b81
75bde4b
587a054
f1d2b5c
00e4347
6658a98
1539925
dadd01e
9d7d082
0bfd131
0d9d54c
363212d
52a3413
30bc4c7
95f35a4
97a52f8
ff00e20
df282d8
3d2d8a0
ad07653
b07e9ba
da8088c
38b3f38
5c416fe
75638a5
b666563
a8a5412
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this context expensive? if so might make sense to only do it in idxmin/idxmax instead of in _reduce? (though this is only for axis=1 so NBD?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be very cheap:
In any case, if we were to try to move this any lower I think we'd need to detect who the caller is? We only want to replace this warning when groupby is called from _reduce.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah - I see, use e.g. a nullcontext for other ops. I think this is cheap enough but can implement if you'd prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what i had in mind was not having any context here but instead in
(Series|DataFrame).idx(min|max)
. But if you say its cheap then its fine