Python

Parse CSV Function

Capstone Part 1: CSV Parser

Create a robust parse_csv(csv_text) function that:

  • Handles the header row
  • Converts each row to a dictionary
  • Skips empty lines
script.py
Loading PYTHON engine...
Downloading Python… (one-time, ~10 MB)

Downloading Python… (one-time, ~10 MB)

This runs entirely in your browser and is cached for next time.