Question: Assuming the following array grades: import numpy as np grades = np . array ( [ [ 8 7 , 9 6 , 7 0

Assuming the following array grades:
import numpy as np
grades = np.array([[87,96,70],[100,87,90],
[94,77,90],[100,81,82]])
Which of the following statements a), b) or c) is false?
Question 6 options:
The following code selects an element in grades by specifying a tuple containing the element's row and column indices in square brackets:
grades[0,1]
To select a single row, specify only one index in square brackets, as in
grades[1]
To select multiple sequential rows, use slice notation, as in
grades[0:2]
and to select multiple non-sequential rows, use a list of row indices, as in
grades[[1,3]]
All of the above statements are true.

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!