nick34992
6/24/2017 - 2:43 PM

Python: csv.DictReader(csvfile), for loop

Python: csv.DictReader(csvfile), for loop

import csv

csvfile = open('data/data-text.csv', 'r')

for row in csv.DictReader(csvfile):
    print row