Pandas helpers (force_df, melt_cols, find_pval, mv, slice, sort, round, …) — standalone module from the SciTeX ecosystem
Project description
scitex-pd
Pandas helpers extracted from the SciTeX ecosystem as a standalone package.
Install
pip install scitex-pd
API
import scitex_pd as pd_
pd_.force_df(data) # Coerce dict / Series / list / scalar → DataFrame
pd_.from_xyz(df, x, y, z) # Long → wide pivot
pd_.to_xy(df) / pd_.to_xyz(df) # Wide → long
pd_.find_pval(df) # Locate p-value columns
pd_.find_indi(df, mask) # Index lookup
pd_.get_unique(df) # Unique value summary
pd_.merge_columns(df, [...], "out")
pd_.melt_cols(df, [...])
pd_.mv(df, col, position=-1) # Move a column
pd_.replace(df, mapping)
pd_.round(df, ndigits=2)
pd_.slice(df, ...)
pd_.sort(df, ...)
pd_.to_numeric(df)
pd_.ignore_setting_with_copy_warning()
Status
Standalone fork of scitex.pd. Deps: numpy, pandas, scitex-types (for is_listed_X).
The umbrella package's scitex.pd import path is preserved via a
sys.modules-alias bridge. 347/347 tests pass.
License
AGPL-3.0-only (see LICENSE).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scitex_pd-0.1.1.tar.gz.
File metadata
- Download URL: scitex_pd-0.1.1.tar.gz
- Upload date:
- Size: 29.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42aee852d213559adb2d9e10a1f5833e0a52a5d613f1c1a607eb3027170f29be
|
|
| MD5 |
7ec59c85c762c60dae426f62d9a0d193
|
|
| BLAKE2b-256 |
ce3f57ec7b741c319439356b85f3c1810027db20676210d1552bde892f248599
|
Provenance
The following attestation bundles were made for scitex_pd-0.1.1.tar.gz:
Publisher:
publish-pypi.yml on ywatanabe1989/scitex-pd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_pd-0.1.1.tar.gz -
Subject digest:
42aee852d213559adb2d9e10a1f5833e0a52a5d613f1c1a607eb3027170f29be - Sigstore transparency entry: 1396526993
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-pd@9815e8c1120d0aa81e40bf31160cfbf070ff50ba -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@9815e8c1120d0aa81e40bf31160cfbf070ff50ba -
Trigger Event:
push
-
Statement type:
File details
Details for the file scitex_pd-0.1.1-py3-none-any.whl.
File metadata
- Download URL: scitex_pd-0.1.1-py3-none-any.whl
- Upload date:
- Size: 35.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca8a874c77672f50974386045f55817262951471b1b17cd3acf7ba6059dc6ee7
|
|
| MD5 |
36baec9462b574fd045a51ea8a9bcc03
|
|
| BLAKE2b-256 |
3e76f58ddbb7ff5762923898d161f0d66c76319a8130a5a1451a277619a0535b
|
Provenance
The following attestation bundles were made for scitex_pd-0.1.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on ywatanabe1989/scitex-pd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scitex_pd-0.1.1-py3-none-any.whl -
Subject digest:
ca8a874c77672f50974386045f55817262951471b1b17cd3acf7ba6059dc6ee7 - Sigstore transparency entry: 1396526997
- Sigstore integration time:
-
Permalink:
ywatanabe1989/scitex-pd@9815e8c1120d0aa81e40bf31160cfbf070ff50ba -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ywatanabe1989
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@9815e8c1120d0aa81e40bf31160cfbf070ff50ba -
Trigger Event:
push
-
Statement type: