Skip to content

Closes #4881: bug in ak.where for ak.Categorical - #4913

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:4881-bug_in_ak.where_for_ak.Categorical
Sep 22, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:4881-bug_in_ak.where_for_ak.Categorical

Conversation

@1RyanK

@1RyanK 1RyanK commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

As described earlier, does a simple bugfix for the Categorical issue. Not caught by the nearby unit test because all of the categories were different, so A.codes.size + 1 happened to be correct.

Closes #4881: bug in ak.where for ak.Categorical

@1RyanK
1RyanK marked this pull request as ready for review September 17, 2025 10:58
@1RyanK
1RyanK force-pushed the 4881-bug_in_ak.where_for_ak.Categorical branch from db96b8a to 6128643 Compare September 18, 2025 14:48

@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 fixing this!

@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, good catch

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

bug in ak.where for ak.Categorical

3 participants