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:
.inspect_types()summary of column types.inspect_mem()summary of memory usage of columns.inspect_na()columnwise prevalence of missing values.inspect_cor()correlation coefficients of numeric columns.inspect_imb()feature imbalance of non-numeric.inspect_num()summaries of numeric columns.inspect_cat()summaries of non-numeric
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
260cfd9dd2aa22173512ca8951c7b3425711ec10149c3c8e6d16baa6a4a237d3
|
|
| MD5 |
b6399e1016485faf810cd0e5cc1bc29a
|
|
| BLAKE2b-256 |
db9c6f7cca54b8d46cbe6ecfb49866a4b4443a28dcdca3bfeb121e2bde7c8466
|
Provenance
The following attestation bundles were made for inspectpd-0.2.0.tar.gz:
Publisher:
release.yml on alastairrushworth/inspectpd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inspectpd-0.2.0.tar.gz -
Subject digest:
260cfd9dd2aa22173512ca8951c7b3425711ec10149c3c8e6d16baa6a4a237d3 - Sigstore transparency entry: 1739163437
- Sigstore integration time:
-
Permalink:
alastairrushworth/inspectpd@0de4b0482b0be009a0d4ef2b572bb4424a53b759 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/alastairrushworth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0de4b0482b0be009a0d4ef2b572bb4424a53b759 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e91d7b3fa74a14e6c8bbec795692cc65cb715da2920531979422490f47fdbff
|
|
| MD5 |
11b6674271b43b6ca5ebb2029996fbbd
|
|
| BLAKE2b-256 |
03bd3bd59e9d110705f050b7bba4df99bbdaa8317d7fe54cdb2362235adf17ec
|
Provenance
The following attestation bundles were made for inspectpd-0.2.0-py3-none-any.whl:
Publisher:
release.yml on alastairrushworth/inspectpd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inspectpd-0.2.0-py3-none-any.whl -
Subject digest:
7e91d7b3fa74a14e6c8bbec795692cc65cb715da2920531979422490f47fdbff - Sigstore transparency entry: 1739163479
- Sigstore integration time:
-
Permalink:
alastairrushworth/inspectpd@0de4b0482b0be009a0d4ef2b572bb4424a53b759 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/alastairrushworth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0de4b0482b0be009a0d4ef2b572bb4424a53b759 -
Trigger Event:
push
-
Statement type: