Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

dataexp

dataexp is a lightweight Python library for quickly exploring a pandas DataFrame. Point it at your data and get instant summary statistics broken down by column type — numeric, text, category, date, and boolean — without writing repetitive .describe() / .value_counts() boilerplate every time.

Features

  • Automatic column type detection — columns are grouped by their underlying dtype (numeric, text, category, date, boolean) as soon as you create a Dataexp object.
  • One-line summaries per data type:
    • numeric_summary() — min, max, mean, median, mode, count of zeros, count of negatives, count of unique values
    • text_summary() — longest/shortest string, average length, unique count, empty count, whether a column contains symbols
    • category_summary() — most common value, rarest value, occurrence counts
    • date_summary() — earliest date, latest date, date range
    • bool_summary() — count of True / False values
  • Deeper, on-demand inspection for specific types, e.g. quartile counts for numeric columns or value occurrence counts for text columns.
  • Null count for every column, available out of the box (.null).

Installation

dataexp isn't published to PyPI yet. Install it directly from source using uv or pip:

# with uv
uv add git+https://github.com/<your-username>/dataexp.git

# with pip
pip install git+https://github.com/<your-username>/dataexp.git

Or clone the repo and install it in editable mode for local development:

git clone https://github.com/<your-username>/dataexp.git
cd dataexp
uv sync

Requirements

  • Python >= 3.11
  • pandas >= 3.0.5
  • python-dateutil >= 2.9.0

Quick start

import seaborn as sns
from dataexp import Dataexp

df = sns.load_dataset('titanic')
exp = Dataexp(df)

print(exp.numeric_summary())
print(exp.text_summary())
print(exp.category_summary())
print(exp.date_summary())
print(exp.bool_summary())

Each *_summary() method returns a pandas DataFrame indexed by column name, so it prints and slices just like any other DataFrame:

>>> exp.numeric_summary()
          Min    Max   Mean  Median  Mode  Count Zero  Count Negative  Count Unique
survived  0.0    1.0   0.38  0.0     0.0   549         0               2
pclass    1.0    3.0   2.31  3.0     3.0   0           0               3
age       0.42   80.0  29.7  28.0    24.0  0           0               88
...

Usage

Checking for missing values

exp.null

Returns a pandas Series with the count of missing values per column.

Working with a specific data type

Each type also has its own object (.numeric, .text, .category, .date, .boolean) if you want more detail than the summary table provides, or want to print a readable text report:

print(exp.numeric)   # detailed __str__ report of every numeric metric
print(exp.text)
print(exp.date)

Numeric quartile counts

exp.numeric.count_quartile()

Returns a list of value counts (one per numeric column), showing how many rows fall into each quartile.

Text occurrence and symbol counts

exp.text.count_occur()   # dict: column name -> Counter of value occurrences
exp.text.count_symbol()  # dict: column name -> count of values containing symbols

License

Licensed under the MIT License — see LICENSE for details. Includes third-party license notices for pandas and python-dateutil.

Metadata

Release files for dataexp 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dataexp 0.1.0a1
File Size Uploaded Provenance Actions
dataexp-0.1.0a1.tar.gz 6.1 kB Without provenance Details for dataexp-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dataexp 0.1.0a1
File Interpreter ABI Platform Actions
dataexp-0.1.0a1-py3-none-any.whl Python 3 none any Details for dataexp-0.1.0a1-py3-none-any.whl

Total release size: 15.5 kB

Release files / dataexp-0.1.0a1.tar.gz

Download URL dataexp-0.1.0a1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dd301f063a27ea174cf1a092bf0ddab03a4c4ebee1deb06e1c4ffe7b636a4814
BLAKE2b-256 checksum
How to use checksums
c2e173b7f7b8952b439b9689f2c22f6b66ee7b821472325c23af99200a371c2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Release files / dataexp-0.1.0a1-py3-none-any.whl

Download URL dataexp-0.1.0a1-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
081e792135921e013f6d34f64945b1ba4d6116a925ba995773b87e57f6f81f7d
BLAKE2b-256 checksum
How to use checksums
a1d662038b67bda8690b1b3be67f662a7344be5505328ded69447eead5735e1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Security for dataexp 0.1.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page