Skip to content

Closes #5410: Bug: Arkouda-backed Series creates NumPy RangeIndex - #5411

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:5410_Bug_Arkouda-backed_Series_creates_NumPy_RangeIndex
Feb 13, 2026
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:5410_Bug_Arkouda-backed_Series_creates_NumPy_RangeIndex

Conversation

@ajpotts

@ajpotts ajpotts commented Feb 12, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Wrapping Arkouda server-side arrays into pandas Series via internal helpers could silently create a NumPy-backed default RangeIndex (or preserve a NumPy-backed provided index). For large Arkouda arrays, materializing an index on the client is not scalable and breaks the “all-data-on-server” expectation.

What changed

  • _akcol_to_series(...) now:
    • accepts an optional index
    • constructs a default Arkouda-backed index when index=None using server-side arange
    • converts any provided non-Arkouda index to Arkouda-backed form (mypy-safe via ArkoudaIndexAccessor, avoiding index.ak)
  • _ak_array_to_pandas_series(...) now mirrors the same behavior: default Arkouda-backed index + conversion of provided indexes.

Tests

Added unit tests to verify:

  • default index created by these helpers is not a pandas RangeIndex and is Arkouda-backed
  • a provided NumPy-backed index is preserved (values/name) and converted to Arkouda-backed.

Files

  • arkouda/pandas/extension/_dataframe_accessor.py
  • arkouda/pandas/extension/_series_accessor.py
  • tests/pandas/extension/index_accessor.py
  • tests/pandas/extension/series_accessor.py

Closes #5410: Bug: Arkouda-backed Series creates NumPy RangeIndex

@ajpotts
ajpotts force-pushed the 5410_Bug_Arkouda-backed_Series_creates_NumPy_RangeIndex branch from 3a0f465 to b6c137f Compare February 12, 2026 16:56
@ajpotts
ajpotts marked this pull request as ready for review February 12, 2026 17:26

@1RyanK 1RyanK 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 force-pushed the 5410_Bug_Arkouda-backed_Series_creates_NumPy_RangeIndex branch from b6c137f to 5260376 Compare February 13, 2026 19:17
@ajpotts
ajpotts merged commit 335481c into Bears-R-Us:main Feb 13, 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.

Bug: Arkouda-backed Series creates NumPy RangeIndex

3 participants