For more information about concepts covered in this lesson, you can check out:
Reading and Writing CSV Files
Reading and writing CSV files. A comma-separated values file is a plain text file with a
.csv extension that holds tabular data, and it’s one of the most popular file formats for storing large amounts of data.
00:16 Each row of the CSV file represents a single table row. By default, the values in the same row are separated with commas, but you could change the separator to a semicolon, tab, space, or any other character.
index_col specifies the column from the CSV file that contains the row labels and is set using a zero-based column index. You should set the value of
index_col when the CSV file contains the row labels to avoid loading them as data.
You’ll learn more about using pandas with CSV files later on in the course, but you can also check out Reading and Writing CSV Files in Python to see how to handle CSV files with the built-in Python library
csv as well.
Become a Member to join the conversation.