Skip to main content

Pandas helpers (force_df, melt_cols, find_pval, mv, slice, sort, round, …) — standalone module from the SciTeX ecosystem

Project description

scitex-pd

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scitex_pd-0.1.1.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scitex_pd-0.1.1-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

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

Hashes for scitex_pd-0.1.1.tar.gz
Algorithm Hash digest
SHA256 42aee852d213559adb2d9e10a1f5833e0a52a5d613f1c1a607eb3027170f29be
MD5 7ec59c85c762c60dae426f62d9a0d193
BLAKE2b-256 ce3f57ec7b741c319439356b85f3c1810027db20676210d1552bde892f248599

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_pd-0.1.1.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-pd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for scitex_pd-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca8a874c77672f50974386045f55817262951471b1b17cd3acf7ba6059dc6ee7
MD5 36baec9462b574fd045a51ea8a9bcc03
BLAKE2b-256 3e76f58ddbb7ff5762923898d161f0d66c76319a8130a5a1451a277619a0535b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page