Data Quality Detective
A small command-line tool for quickly profiling CSV and Excel files before analysis.
I built this around a problem I keep running into in analytics work: a dataset can look usable at first, but the real issues only show up after checking missing values, duplicate rows, mixed numeric/text fields, date parsing, and unusual numeric values.
dqdetect puts those checks into one repeatable command and writes a report you can review or share.
Quick start
git clone https://github.com/Shahedr/data-quality-detective.git
cd data-quality-detective
python -m venv .venv
# macOS/Linux
source .venv/bin/activate
# Windows
# .venv/Scripts/activate
pip install -e .
dqdetect examples/messy_orders.csv
By default the command writes both Markdown and HTML reports to the reports/ folder.
What it checks
- dataset shape and column types
- duplicate rows
- missing values by column
- constant columns
- mixed numeric/text values
- invalid values in date-like columns
- IQR-based outlier counts for numeric columns
The tool does not automatically delete or "fix" anything. The report is meant to help an analyst decide what deserves review.
Example
Data Quality Detective
File: examples/messy_orders.csv
Rows: 12
Columns: 8
Duplicate rows: 1
Reports written to:
reports/messy_orders_report.md
reports/messy_orders_report.html
See examples/messy_orders_report.md for a sample report.
CLI
dqdetect path/to/file.csv
dqdetect workbook.xlsx --sheet Orders\ndqdetect workbook.xlsx --sheet 0
dqdetect data.csv --format html
dqdetect data.csv --output audit_reports
Supported formats:
- CSV
- Excel (.xlsx)
Why these checks?
This first version focuses on issues that can change an analysis if they are handled carelessly.
For example, a freight-cost field containing both dollar values and text such as "included elsewhere" should not simply be converted to zero. Likewise, an extreme numeric value may be a data-entry problem or a legitimate observation. The tool flags these cases instead of making the decision for you.
Project structure
data-quality-detective/
├── dqdetect/
│ ├── __init__.py
│ ├── checks.py
│ ├── cli.py
│ ├── io.py
│ ├── profiler.py
│ └── report.py
├── examples/
│ ├── messy_orders.csv
│ └── messy_orders_report.md
├── tests/
├── .github/workflows/tests.yml
├── CONTRIBUTING.md
├── LICENSE
└── pyproject.toml
Development
pip install -e ".[dev]"
pytest
Roadmap
Things I would like to add next:
- user-configurable thresholds
- JSON output for automation
- schema rules for expected columns and types
- PostgreSQL table profiling
- comparison between two versions of a dataset
- richer HTML charts
- optional GitHub Action for automated data-quality checks
I am keeping the first release intentionally small so the checks are understandable and easy to extend.
License
MIT
Metadata
Release files for dqdetect 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dqdetect-0.1.0.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dqdetect-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / dqdetect-0.1.0.tar.gz
| Download URL | dqdetect-0.1.0.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d98e12275dd090cdaa2808cbe1329f87a7d5112bbc6d5237fcbef57ea973af4
|
|
BLAKE2b-256 checksum How to use checksums |
ed6e757ac24fc7acaed8f4fc9fdeb6eb29d5f37d35cfd673edffb79112cf21b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / dqdetect-0.1.0-py3-none-any.whl
| Download URL | dqdetect-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02a2ebc58d917b070ef00d48beee5cec2fa3ed18c793022b777d16ea4d4b3f1a
|
|
BLAKE2b-256 checksum How to use checksums |
e4b40b82dc33d0c938c9c9da35c314bd2d5f56bb41fe2f0a2da11cd3d7c9fc7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency log