Question: Python Using Numpy a) Return array of odd rows (every other row starting from row 1) from the following numpy array Your answer should be

Python Using Numpy

a) Return array of odd rows (every other row starting from row 1) from the following numpy array Your answer should be something like below `array([[ 3, 36, 49, 12], [27, 30, 33, 36], [51, 24, 57, 20]])`

b) Print max from each column and min from each row from the above numpy array Array_1. hint: you may use "amax" and "amin" function the answer should be array([51, 42, 57, 48]) and array([ 3, 15, 27, 39, 20]), separately.

c) Delete second column (you may use delete function) from the above numpy array Array_1 and insert following new column in its place (you may use insert function). New column were provided as vector. Print the new 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!