Skip to content

Adds ak.minimum and ak.maximum functions - #5125

Merged
ajpotts merged 2 commits into
Bears-R-Us:mainfrom
drculhane:Closes-5118
Dec 17, 2025
Merged

ajpotts merged 2 commits into
Bears-R-Us:mainfrom
drculhane:Closes-5118

Conversation

@drculhane

@drculhane drculhane commented Dec 5, 2025 •

Copy link
Copy Markdown
Contributor

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.

@ajpotts ajpotts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread arkouda/numpy/numeric.py Resolved
Comment thread tests/numpy/numeric_test.py Resolved

@1RyanK 1RyanK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@drculhane

Copy link
Copy Markdown
Contributor Author

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.

I'm afraid it's even wordier now, with the additional cases.

Comment thread arkouda/numpy/numeric.py Resolved
@drculhane
drculhane force-pushed the Closes-5118 branch 2 times, most recently from 1faebeb to 6f47c25 Compare December 12, 2025 15:05
@drculhane drculhane changed the title Adds ak.minimum function Adds ak.minimum and ak.maximum functions Dec 12, 2025

@ajpotts ajpotts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great. Thanks!

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good

@ajpotts
ajpotts added this pull request to the merge queue Dec 17, 2025
Merged via the queue into Bears-R-Us:main with commit 96b2ae8 Dec 17, 2025
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.

ak.minimum

4 participants