What each column really is
Not just object and int64: money stored as text, dates stored as text, yes/no columns, IDs, emails, categories, free text and constants.
An X-ray for your data.
One line tells you what's wrong with a dataset and what stands out in it, in plain English, with the pandas code that fixes each problem. Then clean it, share a report, or ask Claude about it.
pip install dxrayv1.0.0 · Free · MIT · Python 3.9+ · pandas and numpy only · Windows, macOS, Linux
>>> import dxray as dx >>> dx.scan(df, target="revenue") ◆ dxray orders.csv 4,040 rows × 13 columns. Health 53/100: 12 issues, 16 insights. What stands out → What drives 'revenue': 'ad_spend', 'price', 'tier'. → 'price' differs a lot by 'tier': 'Premium' averages 221, 5.2× 'Basic' (42.4). → Total 'revenue' rose 122% from 2026-01 to 2026-12 (by month). → Total 'revenue' dropped 61% in 2026-03 (vs 2026-02), the biggest fall of any month. → The top 20% of 'customer' values (68 of 338) account for 83% of total 'revenue'. Data problems ● 'price' holds numbers stored as text (like '$46.25', '$95.54'), so you can't sum or average it. ● 'region' spells the same value different ways (like 'NORTH', 'North', 'north'). fix: df['region'] = df['region'].str.strip().str.title() ● 40 rows (1.0%) are exact duplicates of another row. fix: df = df.drop_duplicates()
Not just object and int64: money stored as text, dates stored as text, yes/no columns, IDs, emails, categories, free text and constants.
Missing values (including "N/A" and "-" hiding as text), duplicates, repeated IDs, one category spelled three ways, outliers, sentinels like -999. Each comes with the pandas line that fixes it.
What drives the column you care about, the groups that differ, trends and the biggest jumps and drops, 80/20 concentration, and averages that lie. Best first.
A number from 0 to 100, so you can see at a glance whether the data is ready to use.
dx.clean() makes only mechanical fixes and lists every one. It never drops outliers or fills gaps: those are your decisions. Your DataFrame is left untouched.
Rich output in Jupyter, one self-contained HTML page with charts, Markdown for a pull request, or JSON for code.
dx.for_llm() describes your data in a few thousand tokens instead of a million rows. dx.ask() sends that description to Claude and answers in plain English.
dxray sales.csv for a report, --clean to save a cleaned copy, --html, --json, --llm or --ask. CSV, Excel, Parquet and JSON.
Everything runs on your machine; only dx.ask() sends anything, and only the description. Needs just pandas and numpy. Python 3.9+.
report.to_html("report.html") writes a single self-contained page: email it, attach it, open it anywhere. In Jupyter, the report shows like this on its own.

clean_df, log = dx.clean(df) print(log) # dxray cleaned 4,040 rows → 4,000 rows, 7 changes # ✓ 'order_date': dates stored as text are now dates # ✓ 'price': numbers stored as text are now numbers # ✓ Dropped 40 duplicate rows
Only mechanical fixes, every one listed. Outliers and gaps are reported, never touched.
# any model: a compact description, not a million rows prompt = dx.for_llm(df, target="revenue") # or ask Claude (pip install "dxray[ai]") dx.ask(df, "Why did revenue drop in March?")
Claude sees dxray's description of the data, not your rows. Follow-up questions reuse it, so they're faster and cheaper.
pip install dxrayimport dxray as dx, then dx.scan(df).dxray sales.csv --html report.html.The official package is pypi.org/project/dxray, published by FlightCoders. The source, docs and changelog are on GitHub. Also from us for Python: veyra-snap, which turns a run of your code into pytest tests.
Correlation isn't cause. dxray tells you what moves together and what differs; deciding why is still your job.
Trends can't be faked by typos. They use the table's main date column, skip thin periods, and a few quantities of 9,999 won't make a trend.
The first twenty minutes of every analysis: df.info(), describe(), value_counts() and squinting, before you know whether the data can be trusted or where the story is. dxray does that pass in one line and writes it in sentences.
Profilers list statistics for every column and leave the reading to you. dxray tells you what matters: the problems, with the exact code to fix each one, and the findings, ranked, in plain English.
No. dx.scan() only reads. dx.clean() returns a new, cleaned copy and a log of every change, and only makes mechanical fixes such as numbers stored as text and duplicate rows.
Not unless you call dx.ask(). Then only dxray’s description of the data (schema, statistics, a few sample rows, problems and findings) goes to the Anthropic API, never the whole table.
Columns are profiled on every row. The relationship and trend analysis uses a 200,000-row random sample, so a million-row table still takes seconds.
Python 3.9 to 3.14 on Windows, macOS and Linux, with pandas 1.5 or newer. dx.ask() needs Python 3.10 or newer, like the Anthropic SDK.
Yes. dxray is free and open source under the MIT license, with no account and no telemetry. It’s made by FlightCoders, the team behind the Veyra editor.
Veyra Studio is a fast, free code editor with Python debugging, Live Server and Search Everywhere built in.