Repository navigation
Conversation
ajpotts
force-pushed
the
5074_create_arkouda_accessor_for_pandas_Index_pt2
branch
from
December 4, 2025 22:21
e080189 to
0929da1
Compare
ajpotts
force-pushed
the
5074_create_arkouda_accessor_for_pandas_Index_pt2
branch
from
December 4, 2025 22:23
0929da1 to
1ff1e1c
Compare
ajpotts
marked this pull request as ready for review
December 5, 2025 16:20
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.
PR Description
Fix MultiIndex name handling, modernize examples, and correct EA detection logic
Summary
This PR makes three small but correctness-critical improvements to the pandas Index/MultiIndex Arkouda accessor:
Fix MultiIndex name mapping when a level name is
NonePreviously,
Nonenames were coerced to the string"None", which created incorrect round-trip behavior between pandas and Arkouda.We now preserve
Noneby emittingNoneinstead of"None".Update documentation examples to use
pd_idx.arrayPandas no longer exposes
_dataon Index objects. Updating the docstring reflects the correct modern API.Fix Arkouda-backed MultiIndex detection logic
The check previously inspected
level._data, which does not exist on newer pandas versions.We now correctly inspect
level.arrayand verify that it is anArkoudaExtensionArray.These changes improve round-trip compatibility, correctness, and pandas-2.x alignment.
Why this matters
Nonelevel names survive round-trips through Arkouda without corruption.Detailed Changes
1. Preserve
Nonenames in MultiIndex2. Update example to reflect pandas' public API
3. Correct MultiIndex EA detection
Mini Example for Reviewers
Part 2 of #5074: create arkouda accessor for pandas Index