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

par fidji ChatGPT Anglais ~606 tokens
Extrait public Verrouillé
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…

À propos de ce 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.

Exemple de résultat

Fourni par l'auteur
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…

Fiche technique

Modèle
ChatGPT
Langue du prompt
Anglais
Pour qui
Developers and technical founders importing client or partner files into an app, CRM or database
Longueur
~606 tokens (estimation)
Format livré
Texte du prompt, affiché en ligne après achat

Avis

Réservés aux acheteurs

Aucun avis pour l'instant. Seuls les acheteurs de ce prompt peuvent en laisser un.

Signaler ce prompt