Reading a CSV file in Python using the "csv" module's "reader" object

Published: 03 October 2023
on channel: PatchyPython
67
1

CSV (Comma Separated Values) files are a popular format for all sort of information, including spreadsheets. Here I show you how to use the "reader" object from the "csv" module in the standard library to make reading CSV files even easier. This is especially useful when you are dealing with particular "dialects" of CSV files, that follow specific conventions for encoding some characters (for instance for including commas in the data, besides using them as separators). 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


On this page of the site you can watch the video online Reading a CSV file in Python using the "csv" module's "reader" object with a duration of hours minute second in good quality, which was uploaded by the user PatchyPython 03 October 2023, share the link with friends and acquaintances, this video has already been watched 67 times on youtube and it was liked by 1 viewers. Enjoy your viewing!