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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started