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

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter9: Getting Started With Javascript: Creating A Countdown Clock
Section: Chapter Questions
Problem 5CP3
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
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L