Task 3: Amazon wants to find the best customer and likes to reward 50% discount on his next purchase. Find the Customer with the highest amount of total purchase amount. The output should the one as below: 1 from IPython.display import Image 2 Image(filename = "Screenshot_72.jpg") Custoner ID:15229 is the best custoner since he has spent a lot on our business. His total purchase anount is 3702.12 pesos.Sen discount will be given on his next purchase

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Task 3: Amazon wants to find the best customer and likes to reward 50% discount on his next purchase. Find the Customer with the highest
amount of total purchase amount. The output should the one as below:
]:
1 from IPython.display import Image
2 Image(filename = "Screenshot_72.jpg')
]:
Custoner ID:16229 is the best custoner since he has spent a lot on our business. His total purchase amount is 3702.12 pesos.5e1
discount will be given on his next purchase
Transcribed Image Text:Task 3: Amazon wants to find the best customer and likes to reward 50% discount on his next purchase. Find the Customer with the highest amount of total purchase amount. The output should the one as below: ]: 1 from IPython.display import Image 2 Image(filename = "Screenshot_72.jpg') ]: Custoner ID:16229 is the best custoner since he has spent a lot on our business. His total purchase amount is 3702.12 pesos.5e1 discount will be given on his next purchase
In [19]:
1 Datal.head(200)
Out [19]:
InvoiceNo StockCode
Description Quantity
InvoiceDate UnitPrice CustomerID
Country
536365
85123A
WHITE HANGING HEART T-LIGHT HOLDER
01/12/2010 8:28
2.55
17850 United Kingdom
1
536365
71053
WHITE METAL LANTERN
01/12/2010 8:26
3.39
17850 United Kingdom
2
536365
84406B
CREAM CUPID HEARTS COAT HANGER
01/12/2010 8:26
2.75
17850 United Kingdom
3
536365
84029G KNITTED UNION FLAG HOT WATER BOTTLE
01/12/2010 8:26
3.39
17850 United Kingdom
4
536365
84029E
RED WOOLLY HOTTIE WHITE HEART.
01/12/2010 8:26
3.39
17850 United Kingdom
194
538388
21115
ROSE CARAVAN DOORSTOP
4
01/12/2010 9:59
6.75
16250 United Kingdom
195
536388
22469
HEART OF WICKER SMALL
12
01/12/2010 9:59
1.65
18250 United Kingdom
196
536388
22242
5 HOOK HANGER MAGIC TOADSTOOL
12
01/12/2010 9:59
1.65
18250 United Kingdom
197
536389
22941
CHRISTMAS LIGHTS 10 REINDEER
6 01/12/2010 10:03
8.50
12431
Australia
198
536389
21822
VINTAGE UNION JACK CUSHION COVER
8 01/12/2010 10:03
4.95
12431
Australia
199 rows x 8 columns
Transcribed Image Text:In [19]: 1 Datal.head(200) Out [19]: InvoiceNo StockCode Description Quantity InvoiceDate UnitPrice CustomerID Country 536365 85123A WHITE HANGING HEART T-LIGHT HOLDER 01/12/2010 8:28 2.55 17850 United Kingdom 1 536365 71053 WHITE METAL LANTERN 01/12/2010 8:26 3.39 17850 United Kingdom 2 536365 84406B CREAM CUPID HEARTS COAT HANGER 01/12/2010 8:26 2.75 17850 United Kingdom 3 536365 84029G KNITTED UNION FLAG HOT WATER BOTTLE 01/12/2010 8:26 3.39 17850 United Kingdom 4 536365 84029E RED WOOLLY HOTTIE WHITE HEART. 01/12/2010 8:26 3.39 17850 United Kingdom 194 538388 21115 ROSE CARAVAN DOORSTOP 4 01/12/2010 9:59 6.75 16250 United Kingdom 195 536388 22469 HEART OF WICKER SMALL 12 01/12/2010 9:59 1.65 18250 United Kingdom 196 536388 22242 5 HOOK HANGER MAGIC TOADSTOOL 12 01/12/2010 9:59 1.65 18250 United Kingdom 197 536389 22941 CHRISTMAS LIGHTS 10 REINDEER 6 01/12/2010 10:03 8.50 12431 Australia 198 536389 21822 VINTAGE UNION JACK CUSHION COVER 8 01/12/2010 10:03 4.95 12431 Australia 199 rows x 8 columns
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Database connectivity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education