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

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.0.tar.gz (27.3 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.0-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

Details for the file scitex_pd-0.1.0.tar.gz.

File metadata

  • Download URL: scitex_pd-0.1.0.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scitex_pd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7d4f82c82ac8d2c6b24d705e4ecebfa192eb7f314a5b8f59280e1b1d306e2cb6
MD5 befbed57221c84351592ccdae4f243fc
BLAKE2b-256 dcee2a29dc874ebf56c826f20f9655f206a9bf0fe7e2c20c875cfbfbeea3f79d

See more details on using hashes here.

File details

Details for the file scitex_pd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scitex_pd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scitex_pd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f53c7240f997e6f12530bf0750fd2cf18d4c7e6cac6fde5511409865d17eb760
MD5 f3ebf2f30dd78d3f94a01e82c9f94bfe
BLAKE2b-256 ada4d1afdb20195c1ec6431de8c9e5655fe0f51a0c20aeae6558d048596e6422

See more details on using hashes here.

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