Repository navigation
Conversation
ajpotts
force-pushed
the
5332_ArkoudaArray_arithmetic_methods_add_sub_mul
branch
from
January 22, 2026 23:52
1c20966 to
0f8ca4a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5333 +/- ##
========================================
Coverage ? 100.00%
========================================
Files ? 4
Lines ? 63
Branches ? 0
========================================
Hits ? 63
Misses ? 0
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ajpotts
marked this pull request as ready for review
January 23, 2026 12:56
drculhane
approved these changes
Jan 23, 2026
drculhane
left a comment
Contributor
There was a problem hiding this comment.
This also looks very straightforward. Nice work.
1RyanK
approved these changes
Jan 23, 2026
ajpotts
force-pushed
the
5332_ArkoudaArray_arithmetic_methods_add_sub_mul
branch
from
January 23, 2026 16:32
0f8ca4a to
02cacd6
Compare
ajpotts
force-pushed
the
5332_ArkoudaArray_arithmetic_methods_add_sub_mul
branch
from
January 23, 2026 17:55
67b1bcf to
8daa894
Compare
1RyanK
approved these changes
Jan 23, 2026
ajpotts
enabled auto-merge
January 23, 2026 18:09
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.
Summary
This PR enables native Python arithmetic operators (e.g.
+,-,*,/) for Arkouda-backed pandasExtensionArrays by integrating pandas’OpsMixininto the shared base class. It also adds a focused test suite to ensure operator dispatch routes through pandas’ ExtensionArray arithmetic protocol rather than relying on direct_arith_methodcalls.Key changes
OpsMixintoArkoudaExtensionArray, enabling Python dunder operators (__add__,__sub__, etc.) for all Arkouda-backed ExtensionArrays.tests/pandas/extension/arithmetic_ops.py) that:x + y,x + scalar,scalar + x)Why this matters
Previously,
_arith_methodworked when called directly, but expressions likex + yfailed because the required dunder methods were not present on the ExtensionArray classes. IntegratingOpsMixinaligns Arkouda’s pandas extensions with pandas’ expected arithmetic protocol and restores intuitive operator behavior for users.Testing
tests/pandas/extension/arithmetic_ops.pymainand pass with this changeCloses #5332: ArkoudaArray arithmetic methods add, sub, mul