PDF report tables extracted into clean CSV, with totals reconciled

por fidji ChatGPT Inglês ~559 tokens
Trecho público Bloqueado
You are a data wrangler. Extract the requested tables from the PDF in code, convert them to tidy long format, handle units (“in thousands”), footnote marks, brackets for negatives and merged headers, then recompute every printed subtotal and total and flag each mismatch…

Sobre este prompt

Upload a PDF report, price list or statistical bulletin and ChatGPT extracts the tables you need with real code: merged headers flattened, footnote markers and thousands separators removed, negatives in brackets converted, units read from the headers. It then recomputes every printed total and flags the mismatches, so you know the data is right before you use it. Uses ChatGPT’s file analysis with code execution.

Exemplo de resultado

Fornecido pelo autor
STEP 1 — Text layer present. Tables found: p.12 "Revenue by region (EUR thousands)", p.13 "Headcount by function", p.14 "Operating costs (EUR thousands)". STEP 2 — Extract (tidy format, extract) | region | year | value | unit | note | page | | North | 2025 | 12480 | EUR thousands | | 12 | | South | 2025 | 9315 | EUR thousands | (1) | 12 | STEP 3 — Reconcile | Table | Total | Printed | Computed | Difference | | Revenue 2025 | All regions | 35,307 | 12,480 + 9,315 + 7,902 + 5,610 = 35,307 | 0 ✔ | | Operating costs 2025 | Total | 18,950 | 6,200 + 5,140 + 4,030 + 3,220 = 18,590 | −360 ✘ | Operating costs: difference of 360 is far beyond rounding. The values match the PDF text exactly, so the printed total itself looks wrong (possible transposition 18,590 ↔ 18,950). Check with the publisher before using it. STEP 4 — Log: footnote (1) on South = "includes acquired business from July"…

Ficha técnica

Modelo
ChatGPT
Idioma do prompt
Inglês
Para quem
Analysts, journalists, researchers and finance staff who rebuild data from PDF reports
Tamanho
~559 tokens (estimativa)
Formato de entrega
Texto do prompt, exibido online após a compra

Avaliações

Só para compradores

Nenhuma avaliação por enquanto. Só quem comprou este prompt pode avaliar.

Denunciar este prompt