Data import script run and tested on your sample file before production

by fidji ChatGPT English ~606 tokens
Public excerpt Locked
You are a data engineer. Before writing any import code, profile the uploaded sample for real: row count, encoding, delimiter, null rates, date formats, duplicate keys. Then a mapping table, a transformation run on the sample, a rejected-rows report and tests…

About this prompt

Upload a sample of the CSV, Excel or JSON file you need to import and ChatGPT profiles it with real code execution (encodings, delimiters, date formats, duplicates), writes the mapping to your target schema, runs the transformation on the sample and shows rejected rows with reasons. You get a tested script, its tests, and a port to your production language when needed.

Example output

Provided by the author
STEP 1 — Profile (code run on clients_export.csv) Encoding: UTF-8 with BOM · Delimiter: ";" · Rows: 1,248 · Columns: 9 (" Email" has a leading space) | Column | Type | Nulls | Notes | | Email | text | 0.6% | 14 distinct uppercase variants of existing emails | | Signup date | text | 0% | 2 formats: DD/MM/YYYY (1,201) and YYYY-MM-DD (47) | | Amount | text | 1.2% | comma decimal separator, "1 250,00" style thousands | Duplicate client_id: 5 rows. STEP 3 — Run on sample Rows read 1,248 → accepted 1,231 · rejected 17 - invalid email: 9 - duplicate client_id (kept first): 5 - unparseable date: 3 Total rejected 9 + 5 + 3 = 17 ✔ · 1,231 + 17 = 1,248 ✔ STEP 4 — Tests: 18 passed, 0 failed…

Details

Model
ChatGPT
Prompt language
English
Who it's for
Developers and technical founders importing client or partner files into an app, CRM or database
Length
~606 tokens (estimate)
Delivered as
Prompt text, shown online after purchase

Reviews

Buyers only

No reviews yet. Only buyers of this prompt can leave one.

Report this prompt