Repository navigation
Closes #5412: ArkoudaSeriesAccessor.locate materializes to pandas - #5455
Merged
ajpotts merged 1 commit intoMar 5, 2026
Conversation
ajpotts
force-pushed
the
5412_ArkoudaSeriesAccessor.locate_materializes_to_pandas
branch
from
March 5, 2026 16:45
1ed76b4 to
673bcc7
Compare
ajpotts
marked this pull request as ready for review
March 5, 2026 16:50
ajpotts
enabled auto-merge
March 5, 2026 17:31
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 improves the efficiency of the Arkouda pandas extension
Seriesaccessor by avoiding an unnecessary round‑trip conversion when preserving the index returned fromlocate.Previously, the implementation converted the Arkouda index to pandas and then wrapped it back into an Arkouda-backed index through
ArkoudaIndexAccessor. This introduced redundant work and potential copies.The new implementation replaces this logic with a direct helper that converts the Arkouda index to a pandas index without copying, preserving names and levels while reducing overhead.
Change
Replace the following code:
with:
Implementation Details
ArkoudaIndexAccessorconversion with the new helper function.Benefits
Files Changed
arkouda/pandas/extension/_series_accessor.pyCloses #5412: ArkoudaSeriesAccessor.locate materializes to pandas