Reading vanilla CSV files in Python one line at a time (also TSV)

Опубликовано: 16 Июнь 2026
на канале: PatchyPython
69
1

Comma Separated Values (CSV) files are a popular format for exchanging all sorts of information (for instance spreadsheets). Reading vanilla CSV files can be done very simply, without importing any additional libraries. In this video, I show you how to read a CSV file one line at a time and process its contents on the fly. TSV (Tab Separated Values) files are very similar, and can be treated in the same way. Instructions on writing CSV files can be found in the notebooks linked below.

Embedded video, part of the following courses:
Computer Programming at Queen Mary, University of London
Jupyter notebook: https://tinyurl.com/yc2tpdfs
Coding for Scientists at Queen Mary, University of London
Jupyter notebook: https://tinyurl.com/bdef2fcj

Notebooks will open on Google Colab - no installation required