Skip to content

Closes #5141: Index pandas extension accessor add from_return_msg and other functions - #5205

Merged
ajpotts merged 2 commits into
Bears-R-Us:mainfrom
ajpotts:5141_Index_pandas_extension_accessor_add_from_return_msg
Feb 24, 2026
Merged

ajpotts merged 2 commits into
Bears-R-Us:mainfrom
ajpotts:5141_Index_pandas_extension_accessor_add_from_return_msg

Conversation

@ajpotts

@ajpotts ajpotts commented Dec 19, 2025 •

Copy link
Copy Markdown
Contributor

Overview

This PR improves the pandas-facing Index integration by extending the Index.ak accessor with thin delegations to legacy Arkouda Index / MultiIndex functionality, while keeping the public surface area aligned with pandas semantics.

Changes

  • Add delegation methods on the pandas Index.ak accessor for:
    • concat
    • lookup
    • to_csv, to_parquet, and to_hdf
  • Preserve index name / names during concatenation for both Index and MultiIndex.
  • Clarify and harden MultiIndex.lookup behavior:
    • Explicit validation of key length
    • Clear separation of scalar-key vs array-key semantics
  • Add minimal, focused IO tests that validate round-tripping a pd.Index
    backed by an Arkouda ExtensionArray through:
    • CSV
    • Parquet
    • HDF5

Testing

  • New tests live in tests/pandas/extension/io/index_accessor_io.py
  • Tests intentionally target only the pandas Index + ExtensionArray surface
    and avoid direct use of legacy ak.Index APIs.

Closes #5141: Index pandas extension accessor add from_return_msg and other functions

@ajpotts
ajpotts force-pushed the 5141_Index_pandas_extension_accessor_add_from_return_msg branch 4 times, most recently from 5401f1a to b3ec28b Compare December 22, 2025 13:00
@ajpotts
ajpotts marked this pull request as ready for review December 22, 2025 19:04
@ajpotts
ajpotts marked this pull request as draft December 22, 2025 19:05
@ajpotts
ajpotts force-pushed the 5141_Index_pandas_extension_accessor_add_from_return_msg branch from b3ec28b to 7c66362 Compare December 29, 2025 18:12
@ajpotts
ajpotts marked this pull request as ready for review December 29, 2025 18:15
@ajpotts
ajpotts force-pushed the 5141_Index_pandas_extension_accessor_add_from_return_msg branch from 7c66362 to 0f9b3ec Compare January 13, 2026 19:35
@codecov-commenter

codecov-commenter commented Jan 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@f7bef63). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #5205   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         5           
  Lines           ?       109           
  Branches        ?         0           
========================================
  Hits            ?       109           
  Misses          ?         0           
  Partials        ?         0           
Flag Coverage Δ
python-coverage 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ajpotts
ajpotts force-pushed the 5141_Index_pandas_extension_accessor_add_from_return_msg branch from 0f9b3ec to 597721c Compare January 16, 2026 19:37
@ajpotts
ajpotts force-pushed the 5141_Index_pandas_extension_accessor_add_from_return_msg branch from 597721c to e94ff77 Compare January 26, 2026 13:37
@ajpotts
ajpotts force-pushed the 5141_Index_pandas_extension_accessor_add_from_return_msg branch 4 times, most recently from aecf2f9 to 9ea3b92 Compare February 19, 2026 18:08
@ajpotts
ajpotts enabled auto-merge February 19, 2026 18:08
@ajpotts
ajpotts force-pushed the 5141_Index_pandas_extension_accessor_add_from_return_msg branch from 9ea3b92 to 188a52b Compare February 24, 2026 18:00

@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 Feb 24, 2026
Merged via the queue into Bears-R-Us:main with commit bb2f5a3 Feb 24, 2026
19 checks passed
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.

Index pandas extension accessor add from_return_msg and other functions

3 participants