Question: 7-1 Discussion: Applied Regular Expressions: I need a python code to extract information from a file. Here is the code I have to start with:
7-1 Discussion: Applied Regular Expressions:
I need a python code to extract information from a file. Here is the code I have to start with: 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 3...
Good evening IT department, I've pulled a CSV full of some customer data over the past year. I'd really like to nail down some metrics about how much money our customers are spending. Can you guys calculate our total sales for the year and the average dollar amount our customers have spent? Having that information would help us assess our profits for the year and begin analyzing what changes we need to make in order to increase our margins. Thanks for the hard work.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
