Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

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"])

Depressed Dunlin answered on August 10, 2020 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • pandas append csv files a+
  • import csv def calculate_average_salary(csv_file): with open(csv_file, 'r') as file: reader = csv.DictReader(file) total_salary = 0 total_employees = 0 for row in reader: total_salary += float(row['Amount']) total_employees += 1 if total_employees != 0: a

  • 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
    Popularity 3/10 Helpfulness 1/10 Language python
    Source: Grepper
    Tags: python reader row
    Link to this answer
    Share Copy Link
    Contributed on Aug 10 2020
    Depressed Dunlin
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.