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

por fidji ChatGPT Inglés ~606 tokens
Fragmento público Bloqueado
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…

Sobre este 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.

Ejemplo de resultado

Aportado por el autor
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…

Ficha técnica

Modelo
ChatGPT
Idioma del prompt
Inglés
Para quién
Developers and technical founders importing client or partner files into an app, CRM or database
Longitud
~606 tokens (estimación)
Formato de entrega
Texto del prompt, que se muestra en la página tras la compra

Opiniones

Solo para compradores

Todavía no hay opiniones. Solo los compradores de este prompt pueden dejar una.

Denunciar este prompt