How do I read a CSV file in Python? || Jupyter Notebook 2021
Reading CSV files in Python
We are going to exclusively use the csv module built into Python for this task. But first, we will have to import the module as :
Example 1: Read CSV files with csv.reader()
import csv
with open('innovators.csv', 'r') as file:
reader = csv.reader(file)
for row in reader:
print(row)
0 Comments