Question: 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]]
 QUESTION 12: a) What is the difference between a numpy array

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!