Skip to content

Clarify and Centralize Unimplemented pandas ExtensionArray APIs - #5329

Merged
ajpotts merged 2 commits into
Bears-R-Us:mainfrom
ajpotts:5096_unit_tests_for_inherited_functions_in_arkouda_extension_array_pt1
Jan 23, 2026
Merged

ajpotts merged 2 commits into
Bears-R-Us:mainfrom
ajpotts:5096_unit_tests_for_inherited_functions_in_arkouda_extension_array_pt1

Conversation

@ajpotts

@ajpotts ajpotts commented Jan 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR refactors how unimplemented pandas APIs are represented in Arkouda-backed
ExtensionArray implementations. The change improves clarity, consistency, and
maintainability without altering runtime behavior.

Key Changes

  • Categorical-specific cleanup

    • Introduced _categorical_not_implemented helper in ArkoudaCategoricalArray.
    • Grouped pandas.Categorical-specific APIs explicitly and routed them through a
      consistent error path.
    • Made unimplemented methods explicit and easier to audit against pandas.
  • Base ExtensionArray completeness

    • Added explicit stubs for a wide range of pandas ExtensionArray hooks
      (construction, reductions, arithmetic/comparison, string accessors, etc.).
    • Centralized error messages so missing functionality fails loudly and predictably.
  • No functional behavior change

    • This PR does not add new features or change semantics.
    • All affected methods already raised NotImplementedError; this refactor
      standardizes and documents that state.

Motivation

Pandas ExtensionArray support relies on a large and evolving API surface. Making
unimplemented methods explicit:

  • Improves debuggability when pandas calls into Arkouda-backed arrays.
  • Makes gaps in API coverage visible and intentional.
  • Provides a clearer roadmap for incremental implementation.

Related to #5096

@codecov

codecov Bot commented Jan 22, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #5329   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         4           
  Lines           ?        63           
  Branches        ?         0           
========================================
  Hits            ?        63           
  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 changed the title Add stubs for extension array methods that are not yet supported Clarify and Centralize Unimplemented pandas ExtensionArray APIs Jan 22, 2026
@ajpotts
ajpotts marked this pull request as ready for review January 22, 2026 18:45
@ajpotts
ajpotts force-pushed the 5096_unit_tests_for_inherited_functions_in_arkouda_extension_array_pt1 branch from c114cc7 to 8bccaea Compare January 23, 2026 12:56
@ajpotts ajpotts added the blocking This is blocking a developer from completing a task they are actively working. label Jan 23, 2026

@drculhane drculhane 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 like a very straightforward template.

@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 added this pull request to the merge queue Jan 23, 2026
Merged via the queue into Bears-R-Us:main with commit f7c3895 Jan 23, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocking This is blocking a developer from completing a task they are actively working.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants