Question: Consider a numpy array x and a tuple called newshape. Which of the following statements are true? ( a ) x . resize ( newshape

Consider a numpy array x and a tuple called newshape.
Which of the following statements are true?
(a)
x.resize(newshape) returns a view of the original data
(b)
x.flatten() returns a copy of the array
(c)
x.sort() modifies the array in-place
(d)
np.unique(x) modifies the array in-place
(e)
x[::-1] returns a copy of the array
(f)
x.astype('int') modifies the array in-place
(g)
x.T returns a view of the 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!