Python Read CSV File

Summary: in this tutorial, you’ll learn how to read a CSV file in Python using the built-in csv module.

What is a CSV file #

CSV stands for comma-separated values. A CSV file is a delimited text file that uses a comma to separate values.

A CSV file consists of one or more lines. Each line is a data record. And each data record consists of one or more values separated by commas. In addition, all the lines of a CSV file have the same number of values.

Typically, you use a CSV file to store tabular data in plain text. The CSV file format is quite popular and supported by many software applications such as Microsoft Excel and Google Spreadsheet.