Public excerpt
Locked
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…
About this 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.
Example output
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"…
Details
- Model
- ChatGPT
- Prompt language
- English
- Who it's for
- Analysts, journalists, researchers and finance staff who rebuild data from PDF reports
- Length
- ~559 tokens (estimate)
- Delivered as
- Prompt text, shown online after purchase
- Category
- Data & Analytics
Reviews
No reviews yet. Only buyers of this prompt can leave one.