Category: csv

Problem

Read CSV without third-party deps.

Solution

  with open("data.csv") as f:
    rows = list(csv.DictReader(f))
  

Notes

  • Adapt variable names and paths to your project
  • Add error handling for production use
  • See related chapters in the Learning Path