Repository navigation
dxray: an X-ray for your data (Python library), and how to publish to PyPI - #58
Merged
Merged
Conversation
…to PyPI python/dxray: `pip install dxray`, then `dx.scan(df)` says what each column really is, what's wrong with the data and what stands out, in plain English. - Column types beyond pandas dtypes: numbers and dates stored as text, yes/no, IDs, emails, URLs, categories, free text, constants. - Data problems, each with the pandas line that fixes it: missing values (including "N/A"/"-" text), duplicates, repeated IDs, one category spelled several ways, stray spaces, outliers (log scale for money-like columns), sentinel values like -999. A 0-100 health score. - Ranked insights: relationships, groups that differ, what drives a target, trends and the biggest rise and fall on the main date column (typos and thin periods can't fake them), 80/20 concentration, lopsided averages. - Reports for the terminal, Jupyter, one self-contained HTML page with inline SVG charts, Markdown and JSON. - dx.clean(): safe mechanical fixes with a log; never drops outliers or fills gaps. dx.for_llm(): the dataset described for an AI model. - dx.ask(): answers from Claude (optional extra dxray[ai]): streaming, claude-opus-5-5, server-side "default" fallbacks, the description in a cached system prompt. Checked through the real SDK against a local stand-in API. - The dxray command for CSV/TSV/Excel/Parquet/JSON. Tests: 41 (every planted problem and pattern in a messy example dataset is found, no false alarms on naturally lopsided money, clean, for_llm, ask with a fake client, the CLI, edge cases, 500k rows in seconds). Wheel and sdist pass twine check and work from a fresh install. Also .github/workflows/dxray.yml (tests on Linux/Windows/macOS, Python 3.9-3.14; publish with PyPI Trusted Publishing) and docs/PUBLISHING-PYTHON-LIBRARIES.md, a step-by-step guide to publishing dxray and veyra-snap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dxray: one line finds what's wrong with a dataset and what stands out
A new Python library in
python/dxray, plus a guide to publishing our Python libraries.What it does
dxraycommand handles CSV, Excel, Parquet and JSON files.dx.ask(): usesclaude-opus-5-5with streaming and server-side"default"fallbacks, and caches the dataset description across questions. Claude sees the description, not the rows.Tests
dx.ask()was checked through the real Anthropic SDK against a local stand-in API: no key, no cost.twine checkand work from a fresh install..github/workflows/dxray.ymlon Linux, Windows and macOS with Python 3.9–3.14.How to publish: see
docs/PUBLISHING-PYTHON-LIBRARIES.md. In short, after merging:dxray, ownerfcopensource, repositoryveyraeditor, workflowdxray.yml, environmentpypi.The same steps work for veyra-snap.
🤖 Generated with Claude Code