Skip to content

Conversation

@ajpotts
Copy link
Contributor

@ajpotts ajpotts commented Dec 19, 2025

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
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

1 participant