Explain CSV code

Paste a CSV file and Vibe explains what each column holds and how the quoting works: why some values sit in quotes, what a doubled quote means and why one row can run over two lines.

orders.csv

Up to 1,500 characters (about 60 lines). Your code is sent to Unvibe and Anthropic to write the explanation. Don't paste keys or passwords. Common key formats are refused.

Vibe8 lines selected

Press Explain it for the sample, or paste your own code first.

What this CSV sample shows

header and rows
The first line names the columns, and every other row gives one value per column, separated by commas. Python's csv.DictReader used the header as keys and read 6 orders, each with order_id, customer, item, qty, price and note.
quotes
A value with a comma in it goes in double quotes, so the comma is part of the value. "Lee, Sam" came out as Lee, Sam and "Mug, large" as Mug, large. Inside quotes, two double quotes stand for one: "said ""no rush""" came out as said "no rush".
line breaks in a value
A quoted value can hold a line break. Order 1004's note runs over two lines of the file, and the reader kept it as one value, leave at and back door with a line break between, so the file has 8 lines but 6 orders.
empty values and text
A trailing comma means an empty last value: orders 1001, 1005 and 1006 came out with a note of ''. Every value is text, quantities and prices too, so code has to convert them: int(qty) * float(price) over all rows gave 154.5.

Good to know

  • Read with the csv module in Python 3.14, opening the file with newline="" as the module's docs ask.
  • Not every CSV uses commas. A file separated by ; came back as one column, ['id;name'], until it was read with delimiter=";".
  • A space after a comma counts as part of the value: a, "b, c" gave ' "b' and ' c"', while skipinitialspace=True read it as b, c.
  • Writing with csv.writer quoted Lee, Sam and doubled the quotes in said "hi" by itself, and ended the row with \r\n.

Watch out: Splitting lines on commas breaks on quoted values. line.split(",") on the Lee, Sam row gave 7 pieces for 6 columns, with "Lee and Sam" apart, and reading line by line would cut order 1004's note in two. Use a CSV reader instead of split.

Explain CSV code beside your editor

Unvibe is a free app for Mac and Windows. In the app there is no pasting: select code in any app and press Control+U (Ctrl+Alt+U on Windows).

Install on Mac

curl -fsSL https://unvibe.site/install.sh | bash

Paste into Terminal. Unvibe isn't notarized by Apple yet, so this is the smooth path.

Opening the .dmg the first time
  1. Open the .dmg and drag Unvibe to Applications.
  2. Open it once; macOS says it can't verify it. Click Done.
    macOS dialog: Unvibe Not Opened, with Done and Move to Trash
    Real screen, macOS 15
  3. System Settings › Privacy & Security › Open Anyway. Confirm, then enter your Mac password. The button shows for about an hour after you try to open Unvibe.
    macOS Privacy & Security, Security section: Unvibe was blocked to protect your Mac, with the Open Anyway button
    Real screen, macOS 15

The Terminal line checks the download against the published SHA-256 and Unvibe's self-signed signature before it installs anything. More help with the first open