Skip to content

Closes #4674: reorganize accessor module to match numpy/pandas/scipy - #5331

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:4674_reorganize_accessor_module
Jan 23, 2026
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:4674_reorganize_accessor_module

Conversation

@ajpotts

@ajpotts ajpotts commented Jan 22, 2026 •

Copy link
Copy Markdown
Contributor

PR Description: Move Accessor Implementation Under arkouda.pandas

Summary

This PR relocates the accessor implementation from the top-level arkouda.accessor module to arkouda.pandas.accessor to better reflect its pandas-specific functionality and align the package structure with its intended usage.

What Changed

  • Moved arkouda/accessor.py → arkouda/pandas/accessor.py (no functional changes).
  • Updated imports in arkouda/__init__.py and arkouda/pandas/__init__.py to reference the new location.
  • Added a compatibility re-export module at arkouda/accessor/__init__.py to preserve existing import paths.
  • Relocated accessor tests from tests/accessor_test.py to tests/pandas/accessor_test.py.
  • Updated pytest.ini test paths accordingly.

Rationale

The accessor classes (CachedAccessor, DatetimeAccessor, Properties, StringAccessor, etc.) are tightly coupled to the pandas-like API. Moving them under arkouda.pandas:

  • Clarifies ownership and intent of the code.
  • Improves package organization and discoverability.
  • Aligns with the ongoing pandas compatibility work.

Backward Compatibility

Backward compatibility is maintained via re-exports in arkouda.accessor, so existing user code importing from the old location should continue to work without modification.

Testing

  • Existing accessor tests were moved but otherwise unchanged.
  • Full test suite passes with updated paths.

Notes

This is a structural/organizational change only; no behavior or API semantics were modified.

Closes #4674: reorganize accessor module to match numpy/pandas/scipy

@ajpotts
ajpotts force-pushed the 4674_reorganize_accessor_module branch from 240f13f to 06fcb8a Compare January 22, 2026 19:30
@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@aa538f9). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #5331   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         5           
  Lines           ?       109           
  Branches        ?         0           
========================================
  Hits            ?       109           
  Misses          ?         0           
  Partials        ?         0           
Flag Coverage Δ
python-coverage 100.00% <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 marked this pull request as ready for review January 22, 2026 23:47
@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.

Very solid reorganization.

@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, thanks for finishing this up

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

Comment thread arkouda/pandas/__init__.py Resolved
@ajpotts
ajpotts force-pushed the 4674_reorganize_accessor_module branch from 06fcb8a to c2652ac Compare January 23, 2026 16:25
@ajpotts
ajpotts force-pushed the 4674_reorganize_accessor_module branch from 25800a2 to efa87cd Compare January 23, 2026 17:54
@ajpotts
ajpotts enabled auto-merge January 23, 2026 18:09
@ajpotts
ajpotts added this pull request to the merge queue Jan 23, 2026
Merged via the queue into Bears-R-Us:main with commit 2a6425c 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.

reorganize accessor module to match numpy/pandas/scipy

4 participants