import csv import re data = [] with open('customerdata.csv') as csvfile: reader = csv.dictreader(csvfile) for row in reader: data.append(row) print(data[0]) print(data[1]["name"]) print(data[2]["spent past 30 days"])

0

import csv import re data = [] with open('customerData.csv') as csvfile: reader = csv.DictReader(csvfile) for row in reader: data.append(row) print(data[0]) print(data[1]["Name"]) print(data[2]["Spent Past 30 Days"])

By Beginner Ann O'Keefe at Aug 09 2020


Related code examples


Code examples by languages