Skip to content

refactor(pd): extract scitex.pd into standalone scitex-pd package#244

Open
ywatanabe1989 wants to merge 1 commit intodevelopfrom
feat/extract-scitex-pd
Open

refactor(pd): extract scitex.pd into standalone scitex-pd package#244
ywatanabe1989 wants to merge 1 commit intodevelopfrom
feat/extract-scitex-pd

Conversation

@ywatanabe1989
Copy link
Copy Markdown
Owner

Summary

Extracts `scitex.pd` into scitex-pd v0.1.0 (1,547 LOC, ~25 source files).

  • Pandas helpers (force_df, from/to_xyz, find_pval, mv, slice, sort, etc) preserved.
  • `[pd]` extra → `scitex-pd>=0.1.0` (transitively pulls numpy/pandas/scitex-types).
  • 347/347 tests pass.

🤖 Generated with Claude Code

Pandas helpers (force_df, from_xyz/to_xy/to_xyz, find_pval/find_indi/get_unique,
merge_columns/melt_cols, mv, replace, round, slice, sort, to_numeric,
ignore_SettingWithCopyWarning) now live in the standalone scitex-pd package
(https://github.com/ywatanabe1989/scitex-pd).

scitex.pd/__init__.py becomes a sys.modules alias.
The [pd] extra is updated to depend on scitex-pd>=0.1.0.

Decoupling notes (handled in scitex-pd's initial commit):
- _force_df: scitex.types.is_listed_X → direct scitex_types.is_listed_X dep.
- _to_xy: relative `from ._mv import mv` instead of `import scitex; scitex.pd.mv`.
- _to_xyz: dropped unused `import scitex`.

347/347 tests pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant