6 Claude Prompts for CSV Imports (Copy & Paste)

Fixing a CSV before you import it should take minutes. It tends to take an afternoon, because the problems only show up after the import fails and half your rows land in the wrong columns. These six Claude prompts for CSV imports work in order: first make the file readable, then clean and reshape it.

Step 1 — Get the file readable

1. Spot the problems in a messy CSV

Here is the header row and the first five rows of a CSV I need to import: [paste rows]. List every problem that would break an import, such as duplicated headers, mixed types, stray delimiters and empty columns. For each problem, give the fix I should apply for [target tool].

What it does: Turns a blind import into a known list of defects you can fix one by one.

How to use: Replace [paste rows] and [target tool]; keep the sample small so the answer stays sharp.

2. Rewrite the headers for safe mapping

Rewrite my CSV headers so they are lowercase snake_case and safe for [target platform]. Input headers: [list headers]. Return a two-column mapping of old header to new header, then the corrected header row on a single line.

What it does: Removes the spaces, capitals and punctuation that break automatic column mapping.

How to use: Replace [target platform] and [list headers]; paste the corrected row over row one of the file.

3. Convert dates and numbers

My CSV uses [source date format] for dates and [source number format] for numbers. Convert both to what [target tool] expects: dates as [target date format], numbers as plain decimals with no thousands separator. Show the first three converted rows and flag any value you could not parse.

What it does: Catches the silent corruptions where day and month swap, or a number arrives as text.

How to use: Replace the four bracketed formats, then check the flagged rows by hand before importing.

Step 2 — Clean and reshape it

4. Split a combined column into real fields

One column in my CSV holds a combined value that looks like [example value]. Split it into separate columns for [field list]. Give me the spreadsheet formula and the equivalent pandas line, and show the result for these rows: [paste rows].

What it does: Unpacks a mixed column without retyping the whole file by hand.

How to use: Replace [example value], [field list] and [paste rows]; confirm the split works on an edge case too.

5. Deduplicate without losing the newest record

My CSV has duplicate rows on [key column]. Keep the row with the most recent [date column] for each key and drop the rest. Give me the remaining row count, the list of keys you removed, and the method to run this in [target tool].

What it does: Leaves one record per entity and shows you exactly what it deleted.

How to use: Replace [key column], [date column] and [target tool]; confirm the removed keys are genuinely duplicates.

6. Write the import mapping

Map my cleaned columns to the fields [target tool] expects for [data type]: [list my columns]. Output a table of my column to target field, mark any column with no target, and note which required fields are still empty.

What it does: Turns the final step of an import into a checklist instead of a guess.

How to use: Replace [target tool], [data type] and [list my columns]; fill the empty required fields before you run it.

Common mistakes

  • Importing before checking types: a column that looks numeric but holds “N/A” flips to text and takes every calculation with it.
  • Trusting the preview: importers show the first rows, and the first rows are almost always the cleanest part of the file.
  • Editing the original: keep the raw download untouched so you can re-run a corrected mapping without starting over.

Keep going

GuPrompt keeps every prompt copy-paste ready. No account needed.

Leave a Comment