Repository navigation
Adds ak.minimum and ak.maximum functions - #5125
Merged
Merged
Conversation
ajpotts
requested changes
Dec 5, 2025
ajpotts
left a comment
Contributor
There was a problem hiding this comment.
Thanks for putting this up so quickly! It's just missing a couple of cases as noted (scalars and bool) to align with numpy better.
1RyanK
approved these changes
Dec 5, 2025
1RyanK
left a comment
Contributor
There was a problem hiding this comment.
Looks good! The return line is a bit hard to read, but I'm not sure if anything can be done to make it better.
Contributor
Author
I'm afraid it's even wordier now, with the additional cases. |
ajpotts
reviewed
Dec 9, 2025
drculhane
force-pushed
the
Closes-5118
branch
2 times, most recently
from
December 12, 2025 15:05
1faebeb to
6f47c25
Compare
drculhane
force-pushed
the
Closes-5118
branch
from
December 12, 2025 15:31
f494994 to
ac20756
Compare
drculhane
force-pushed
the
Closes-5118
branch
from
December 15, 2025 19:20
ac20756 to
e94b9c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #5118 and #5127. Also #5161.
Adds ak.minimum and ak.maximum functions to match numpy.
Addendum:
After I added scalars and bool, I had to expand my handling of isnan. That highighted an error in ak.isnan. The line:
return full(pda.size, False, dtype=bool)should have read:
return full(pda.shape, False, dtype=bool)I've fixed that.