Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Do These Things in Python 3 in a Jupyter Notebook Preferably. Link to datasets, dictionary, and database, and existing Python code https://mega.nz/#!U35HjTpD!NMg1SSD8J59JWbAH-9hlCWxdi6cojSLplzelnCKiBL0 Create a new

Do These Things in Python 3 in a Jupyter Notebook Preferably.

Link to datasets, dictionary, and database, and existing Python code https://mega.nz/#!U35HjTpD!NMg1SSD8J59JWbAH-9hlCWxdi6cojSLplzelnCKiBL0

Create a new pandas DataFrame of data that will be used for target marketing and write it out to a headered csv file.

(a) This DataFrame should have one row per customer. The customers included should be active buyers or lapsed buyers. (b) The row for each customer should include the customer's account identifier, and an indicator variable (Y/N, or 1/0) for each product category the customer has made at least one purchase in. (c) Include for each customer their buyer status, and the total dollar amount of the purchases they have made from XYZ using all data available for him or her. (d) Write your DataFrame to a csv file that has a header record of the column names, and also store it in a shelve database. (e) Verify that the files you wrote your customer DataFrame to were written correctly. (Commented code, of course.)

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

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

6. What data will she need?

Answered: 1 week ago

Question

1. How did you go about making your selection?

Answered: 1 week ago