Skip to content

Rank CSV, Parquet, and DuckDB exploratory data analysis skills on messy real-world datasets

Loading 50MB CSVs into prompt text truncates rows and hallucinates sums. Compare DuckDB and Pandas/Polars skills tested on dirty schemas.

Copy the prompt and paste it into the AI assistant you already use.

Why naive data prompts silently produce wrong numbers—and how top skills fix it

  1. 01

    Require mandatory schema + null-rate profiling first

    Top data skills inspect row counts, distinct key cardinality, null percentages, and min/max dates before writing a single aggregation.

  2. 02

    Guard against many-to-many join fan-out inflation

    Joining non-unique customer logs doubles revenue totals silently; strong skills assert row-count invariants before and after joins.

  3. 03

    Use DuckDB or Polars over loading CSV text into context

    Executing SQL/DataFrame scripts locally handles 10M rows in milliseconds at near-zero token cost with exact IEEE/Decimal precision.

  4. 04

    Verify timezone and mixed-date format normalization

    Ensure the skill catches mixed ISO/US date strings and trailing whitespace keys ('paid ' vs 'paid') during ingestion.

How it works in practice

Dirty-data analytics benchmark

Run 60 business questions across 15 messy e-commerce CSV/Parquet bundles (duplicate webhook rows, USD/EUR mixed columns, UTF-8 BOMs).

Numerical accuracy comparison

duckdb-audit-analyst v2.3: 94% exact numerical match, caught 15/15 join fan-out traps via pre-join cardinality check. generic-pandas-prompt: 61% exact match — double-counted refunded orders and silently dropped 8% malformed dates.

Pre-join cardinality checks and currency-column profiling matter far more than fancy chart code when real business CSVs are messy.

Questions and answers

Why do DuckDB-based skills consistently top tabular file benchmarks?

DuckDB queries CSV, JSON, and Parquet files directly on disk with expressive SQL, clean schema sniffing, and zero Python memory blowups.

Are edge cases like refunds, test accounts, and timezones included?

Yes—datasets intentionally plant internal '@test.com' rows, negative credit memos, and UTC-vs-local boundary orders to mirror real SaaS exports.

Do these skills expose raw customer rows to the LLM?

Privacy-conscious DuckDB skills send only schema headers and aggregated summary tables to the LLM while keeping raw PII rows local.