Question: Need some help with some lab questions involving Numpy. I am brand new to python so numpy has been difficult so far. Thank you for

Need some help with some lab questions involving Numpy. I am brand new to python so numpy has been difficult so far. Thank you for any help!

Need some help with some lab questions involving Numpy. I am brandnew to python so numpy has been difficult so far. Thank you

Q) Create a numpy array from list a and name it as x In [ ]: a=[79, 53, 90, 64, 64, 48, 60, 82, 65, 58, 55, 66, 71, 60, 62, 68, 70, 53, 49, 66, 67, 75, 60, 43, 57, 60, 53, 58, 60, 68, 59, 58, 68, 66, 63, 66, 64, 77, 56, 60, 68, 59, 45, 58, 49, 59, 71, 68, 62, 56, 83, 71, 77, 71, 58, 47, 80, 77, 73, 81, 75, 63, 77, 59, 28, 61, 64, 64, 73, 71, 62, 55, 62, 73, 41, 65, 49, 57, 66, 74, 60, 63, 78, 58, 58, 74, 68, 72, 51, 77, 64, 86, 47, 79, 65, 50, 85, 73, 68, 76] Q) How many elements of x is greater than 70? In [ ]: Q) What is the index of the minimum element of x? In [] : Q) Calculate the mean of the elements greater than 70 using a single Python statement. In [ ]: Q)Calculate the variance of the elements with indexes between 10 and 30? In [ ]: ** Q)Create a numpy array with shape of (20,5) from the following list. Name the array as x2. (Hint: You may want to use reshape function for this question) ** Q)Create a numpy array with shape of (20,5) from the following list. Name the array as x2. (Hint: You may want to use reshape function for this question) In [ ]: a= [79, 53, 90, 64, 64, 48, 60, 82, 65, 58, 55, 66, 71, 60, 62, 68, 70, 53, 49, 66, 67, 75, 60, 43, 57, 60, 53, 58, 60, 68, 59, 58, 68, 66, 63, 66, 64, 77, 56, 60, 68, 59, 45, 58, 49, 59, 71, 68, 62, 56, 83, 71, 77, 71, 58, 47, 80, 77, 73, 81, 75, 63, 77, 59, 28, 61, 64, 64, 73, 71, 62, 55, 62, 73, 41, 65, 49, 57, 66, 74, 60, 63, 78, 58, 58, 74, 68, 72, 51, 77, 64, 86, 47, 79, 65, 50, 85, 73, 68, 76) Q)Print the second row of x2 In [ ]: Q)Print the second column of x2 In (): Q)Find the row averages of array x2 In (): 1 Q) Find the column averages of array x2? In [ ]

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!