Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Students also viewed these Databases questions