Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 2 : a ) What is the difference between a numpy array and python list? b ) Let's say you are given a

QUESTION 12:
a) What is the difference between a numpy array and python list?
b) Let's say you are given a python list of 1000 numbers that are randomly selected from the numbers between 0 and 10000. How could you get the unique numbers in this list.
c) You are given "BreadBasket_DMS.csv" file that contains sales informations of a bakery. The columns are: Date,Time,Transaction and Item. Transaction can be thought as the order id.
BreadBasket_DMS.csv
BreadBasket_DMS.csv No SelectionWrite a pseudocode in python or PANDAS that can produce the following table. The table shows top-10 sold items in breakfast, lunch and dinner. You can assume sales in the hour interval (6,11] for breakfast, (11,15] for lunch and (15,20] for dinner.
\table[[,\table[[breakfast],[item]],count,\table[[lunch],[item]],count,\table[[dinner],[item]],count],[1,Coffee,2561.0,Coffee,2502.0,Coffee,408.0],[2,Bread,1609.0,Bread,1465.0,Bread,250.0],[3,Pastry,604.0,Tea,804.0,Tea,175.0],[4,Tea,456.0,Sandwich,642.0,Cake,154.0],[5,Medialuna,402.0,Cake,607.0,Hot chocolate,92.0],[6,NONE,315.0,NONE,454.0,Cookies,80.0],[7,Cake,264.0,Soup,310.0,Alfajores,64.0],[8,Hot chocolate,232.0,Hot chocolate,264.0,Brownie,46.0],[9,Farm House,210.0,Cookies,254.0,Juice,42.0],[10,Cookies,206.0,Pastry,226.0,Medialuna,41.0]]
image text in transcribed

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions