Podcast Lookup

How to read CSV file in Python

alexkras.com

  • December 24, 2017

About this episode

Using () Using native Let’s say we have the following CSV file, named . You can download this file here. The first method demonstrated in Python docs would read the file as follows: This can be simplified a bit with list comprehension, replacing the for loop with . I am calling to skip the header row (First Name, Last Name etc).

Source