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

por fidji ChatGPT Inglês ~606 tokens
Trecho 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.

Exemplo de resultado

Fornecido pelo 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 do prompt
Inglês
Para quem
Developers and technical founders importing client or partner files into an app, CRM or database
Tamanho
~606 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