Skip to content

BUG: Pandas Series with dtype="ak" Returns NumPy Index Values #5428

Closed

Description

@ajpotts

Description

When creating a pandas Series backed by the Arkouda extension dtype
(dtype="ak"), the index values are returned as a NumPy array instead
of an Arkouda-backed structure.

Reproducer

>>> import arkouda as ak
>>> import pandas as pd

In [6]: s = pd.Series(["a","b","c"], dtype="ak")

In [7]: s.index.values
Out[7]: array([0, 1, 2])

In [8]: type(s.index.values)
Out[8]: numpy.ndarray

Expected Behavior

For consistency with Arkouda-backed data structures, the index values
should be represented using an Arkouda-backed index (e.g., an
ArkoudaArray or Arkouda Index type), not materialized as a NumPy
ndarray.

Returning a NumPy array:

  • Forces client-side materialization
  • Breaks scalability expectations
  • Is inconsistent with Arkouda-backed column behavior

Actual Behavior

s.index.values returns:

numpy.ndarray

Impact

  • Violates scalability guarantees
  • Introduces silent data transfer to the client
  • Creates inconsistent behavior between data and index representations

Proposed Fix

Ensure that Series created with dtype="ak" use an Arkouda-backed index
type by default, or override the .values accessor to return an Arkouda
structure instead of a NumPy array.

Environment

  • Arkouda pandas extension
  • pandas Series with dtype="ak"

Activity

  1. added
    bug
    on Feb 20, 2026
  2. self-assigned this
    on Feb 20, 2026
  3. added 2 commits that reference this issue on Feb 24, 2026
    e9ef530
    ee8626e
  4. added a commit that references this issue on Feb 24, 2026
    0e9840f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions