Skip to main content

Inspection, comparison and visualisation of pandas data frames

Project description

inspectpd

Overview

inspectpd is collection of utilities for columnwise summary, comparison and visualisation of pandas dataframes. The package patches in the following methods for pandas objects:

Installation and use

You can install inspectpd using pip with

pip install inspectpd

Simply import the package and use the methods on a pandas dataframe:

import pandas as pd
import inspectpd
# example data set just for illustration
from inspectpd import starwars

# categorical features summary
starwars.inspect_cat()

You can also get a quick visualisation of the summary too:

# get a plot of the categorical features
starwars.inspect_cat().view()

Development

This project uses uv for environment management and pre-commit with ruff for linting and formatting.

# create the dev environment and install inspectpd (editable) + dev tools
uv sync

# install the git hooks
uv run pre-commit install

# run the test suite
uv run pytest

# lint and format
uv run ruff check .
uv run ruff format .

# build the sdist and wheel
uv build

Releasing to PyPI

The package version is derived from git tags via hatch-vcs. To cut a release:

git tag v0.2.0
git push origin v0.2.0

This triggers .github/workflows/release.yml, which builds the wheel and sdist, creates a GitHub Release, and publishes to PyPI via OIDC (no API token needed).

One-time PyPI setup (Trusted Publisher): go to https://pypi.org/manage/account/publishing/ and add a publisher with:

Field Value
Owner alastairrushworth
Repository inspectpd
Workflow release.yml
Environment pypi

Then create a matching pypi environment in the repo at Settings → Environments → New environment.

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

inspectpd-0.2.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

inspectpd-0.2.0-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file inspectpd-0.2.0.tar.gz.

File metadata

  • Download URL: inspectpd-0.2.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inspectpd-0.2.0.tar.gz
Algorithm Hash digest
SHA256 260cfd9dd2aa22173512ca8951c7b3425711ec10149c3c8e6d16baa6a4a237d3
MD5 b6399e1016485faf810cd0e5cc1bc29a
BLAKE2b-256 db9c6f7cca54b8d46cbe6ecfb49866a4b4443a28dcdca3bfeb121e2bde7c8466

See more details on using hashes here.

Provenance

The following attestation bundles were made for inspectpd-0.2.0.tar.gz:

Publisher: release.yml on alastairrushworth/inspectpd

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

File details

Details for the file inspectpd-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: inspectpd-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inspectpd-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e91d7b3fa74a14e6c8bbec795692cc65cb715da2920531979422490f47fdbff
MD5 11b6674271b43b6ca5ebb2029996fbbd
BLAKE2b-256 03bd3bd59e9d110705f050b7bba4df99bbdaa8317d7fe54cdb2362235adf17ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for inspectpd-0.2.0-py3-none-any.whl:

Publisher: release.yml on alastairrushworth/inspectpd

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