Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 40 Line 11 of the code below tells Python to loop through the values in NegSubCats. 3 import pandas as pd 4xl - pd.ExcelFile(osSalesData.xlsx)

image text in transcribed
Question 40 Line 11 of the code below tells Python to loop through the values in NegSubCats. 3 import pandas as pd 4xl - pd.ExcelFile("osSalesData.xlsx") 5 lines = "-"*25 + " " 6 SalesData = xl.parse("Orders") 7 8 ProductData - SalesData[["Sub-Category", "Product Name", "Profit"]] 9 NegSubcats = ["Tables", "Bookcases", "Supplies"] 10 11 for subcat in NegSubCats: 12 Product Info - ProductData.loc[ProductData[ "Sub-Category"]-- subcat] ProdProfit - Product Info.groupby (by - "Product Name"). sum().round().sort_values (by - "Profit") print(subcat) 15 print(ProdProfit) print(lines) 13 16 True o False * Previous Quiz saved at 10:12 am

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

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

2. How will you handle the situation?

Answered: 1 week ago

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago