Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

define EFFECTIVE PARTICIPATION

Answered: 1 week ago