Skip to main content

pandas-eda-check

pandas-eda-check is a lightweight utility for quickly summarizing data types, unique values, completeness, and missingness in a pandas DataFrame.

Features

  • One-row-per-column data quality report
  • Dataset-level missing-data summary
  • Optional filtering to columns with missing values
  • Sorting by missing percentage, missing count, unique count, or data type
  • Report metadata stored in DataFrame.attrs
  • Safe handling of empty DataFrames and duplicate column names

Installation

pip install pandas-eda-check

Python 3.9 or newer is required.

Usage

import pandas as pd

from pandas_eda_check import check

df = pd.DataFrame(
    {
        "name": ["Ada", "Bob", "Bob"],
        "age": [36, None, 29],
        "city": ["London", "Paris", None],
    }
)

report = check(df)
print(report)

Console summary:

Data Shape: (3, 3)
Total Missing Cells: 2
Rows With Missing Values: 2
Overall Missing Percentage: 22.22%

Report:

     Data Type  Unique Values  Values Present  Missing Count  Missing %
name    object              2               3              0       0.00
age    float64              2               2              1      33.33
city    object              2               2              1      33.33

The original DataFrame column names are used as the report index.

Parameters

check(
    data,
    include_dtypes=True,
    include_complete=True,
    sort_by=None,
    ascending=False,
    round_digits=2,
    display=True,
)
Parameter Description
data pandas DataFrame to inspect.
include_dtypes Include the Data Type report column.
include_complete Include columns that have no missing values.
sort_by Sort by missing_pct, missing_count, unique, or dtype.
ascending Use ascending order when sorting.
round_digits Non-negative number of decimal places for percentages.
display Print the dataset-level summary.

Sorting

check(df, sort_by="missing_pct")
check(df, sort_by="missing_count")
check(df, sort_by="unique")
check(df, sort_by="dtype", ascending=True)

Columns with missing values only

missing_columns = check(df, include_complete=False)

Suppress console output

report = check(df, display=False)

Report metadata

report.attrs["shape"]
report.attrs["total_missing_cells"]
report.attrs["rows_with_missing"]
report.attrs["overall_missing_percent"]

Development

Install the package and development tools in editable mode:

python -m pip install -e ".[dev]"

Run the tests:

python -m pytest

Build and validate the distribution:

python -m build
python -m twine check dist/*

License

MIT License. See LICENSE.

Download files

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

Source Distribution

pandas_eda_check-0.2.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

pandas_eda_check-0.2.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pandas_eda_check-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e4a7f8a69a9f3170547df541fb704e1f11f48d50b0978f5aefc9bda5903e3699
MD5 8d666d34244952e2bcac4758600b444e
BLAKE2b-256 ac29e90cbffd062a717f2d60fa0c6343f0ae45dd1e80495dd281d4e1c803d0de

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on CS-Ponkoj/pandas_eda_check

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

File details

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

File metadata

File hashes

Hashes for pandas_eda_check-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39aab07988140e53821d67de6b92d5417cbbe9be165f01102f8304303d8e1bed
MD5 6275382913db0b1d0cd60ab266b6b8b7
BLAKE2b-256 ccbf5ab8439ecb192175e83868555a65a33c7b9f29208508dfd01ba3c5e017c1

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on CS-Ponkoj/pandas_eda_check

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 Sentry Error logging StatusPage Status page