Published
- 1 min read
reading a csv file in python
 The solution for this is noted below
reading a csv file in python
Solution
import csv
# open the file
with open('csvfile.csv' , 'r') as csvfile:
    # create the object of csv.reader()
    csv_file_reader = csv.reader(csvfile,delimiter=',')
    for row in csv_file_reader:
        print(row) 
Try other methods by searching on the site. That is if this doesn’t work