Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,8 @@ path = [

# Pd Module - Pandas utilities
# Use: pip install scitex[pd]
pd = [
"xarray",
]
# Real implementation lives in the standalone scitex-pd package.
pd = ["scitex-pd>=0.1.0"]

# PLT Module - Plotting utilities
# Use: pip install scitex[plt]
Expand Down
62 changes: 18 additions & 44 deletions src/scitex/pd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,46 +1,20 @@
#!/usr/bin/env python3
"""Scitex pd module."""
"""SciTeX pd — thin compatibility shim for scitex-pd.

from ._find_indi import find_indi
from ._find_pval import _find_pval_col, find_pval
from ._force_df import force_df
from ._from_xyz import from_xyz
from ._get_unique import get_unique
from ._ignore_SettingWithCopyWarning import (
ignore_setting_with_copy_warning,
ignore_SettingWithCopyWarning,
)
from ._melt_cols import melt_cols
from ._merge_columns import merge_cols, merge_columns
from ._mv import mv, mv_to_first, mv_to_last
from ._replace import replace
from ._round import round
from ._slice import slice
from ._sort import sort
from ._to_numeric import to_numeric
from ._to_xy import to_xy
from ._to_xyz import to_xyz
Aliases ``scitex.pd`` to the standalone ``scitex_pd`` package via ``sys.modules``.
``scitex.pd is scitex_pd``.

__all__ = [
"find_indi",
"find_pval",
"_find_pval_col",
"force_df",
"from_xyz",
"get_unique",
"ignore_SettingWithCopyWarning",
"ignore_setting_with_copy_warning",
"melt_cols",
"merge_cols",
"merge_columns",
"mv",
"mv_to_first",
"mv_to_last",
"replace",
"round",
"slice",
"sort",
"to_numeric",
"to_xy",
"to_xyz",
]
Install: ``pip install scitex[pd]`` (or ``pip install scitex-pd``).
See: https://github.com/ywatanabe1989/scitex-pd
"""

import sys as _sys

try:
import scitex_pd as _real
except ImportError as _e: # pragma: no cover
raise ImportError(
"scitex.pd requires the 'scitex-pd' package. "
"Install with: pip install scitex[pd] (or: pip install scitex-pd)"
) from _e

_sys.modules[__name__] = _real
125 changes: 0 additions & 125 deletions src/scitex/pd/_find_indi.py

This file was deleted.

113 changes: 0 additions & 113 deletions src/scitex/pd/_find_pval.py

This file was deleted.

Loading
Loading