Assume that you are a data scientist in Amazon. Since the company is celebrating Silver Jubilee this year, it has decided to reward their customers. Your Manager handed over last 2 years retail data and asked you to do certain tasks. The tasks are as follows: Task1-1: When you started working with data, you've realized that it needs cleaning to produce better results. Do essential data cleaning. The final output should be the one as follows before cleaning: any negatives?: True after cleaning: any negatives?: False

MIS
9th Edition
ISBN:9781337681919
Author:BIDGOLI
Publisher:BIDGOLI
Chapter3: Database Systems, Data Warehouses, And Data Marts
Section: Chapter Questions
Problem 6P
icon
Related questions
Question

What will be the python code for this

Assume that you are a data scientist in Amazon. Since the company is celebrating
Silver Jubilee this year, it has decided to reward their customers. Your Manager
handed over last 2 years retail data and asked you to do certain tasks. The tasks are
as follows:
Task1-1:
When you started working with data, you've realized that it needs cleaning to
produce better results.
Do essential data cleaning. The final output should be the one as follows
before cleaning: any negatives?: True
after cleaning: any negatives?: False
Transcribed Image Text:Assume that you are a data scientist in Amazon. Since the company is celebrating Silver Jubilee this year, it has decided to reward their customers. Your Manager handed over last 2 years retail data and asked you to do certain tasks. The tasks are as follows: Task1-1: When you started working with data, you've realized that it needs cleaning to produce better results. Do essential data cleaning. The final output should be the one as follows before cleaning: any negatives?: True after cleaning: any negatives?: False
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Complex Datatypes
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
MIS
MIS
Computer Science
ISBN:
9781337681919
Author:
BIDGOLI
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning