adplus-dvertising
frame-decoration

Question

The ________ function returns its argument with a modified shape, whereas the ________ method modifies the array itself.

a.

reshape, resize

b.

resize, reshape

c.

reshape2, resize

d.

all of the mentioned

Posted under Data Science

Answer: (a).reshape, resize

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The ________ function returns its argument with a modified shape, whereas the ________ method modifies the array itself.

Similar Questions

Discover Related MCQs

Q. To create sequences of numbers, NumPy provides a function __________ analogous to range that returns arrays instead of lists.

Q. Point out the correct statement.

Q. Which of the following function stacks 1D arrays as columns into a 2D array?

Q. ndarray is also known as the alias array.

Q. Which of the following method creates a new array object that looks at the same data?

Q. Which of the following function can be used to combine different vectors so as to obtain the result for each n-uplet?

Q. ndarray.dataitemSize is the buffer containing the actual elements of the array.

Q. Which of the following sets the size of the buffer used in ufuncs?

Q. Point out the wrong statement.

Q. Which of the following attribute should be used while checking for type combination input and output?

Q. Which of the following returns an array of ones with the same shape and type as a given array?

Q. Point out the wrong statement.

Q. Which of the following set the floating-point error callback function or log object?

Q. Some ufuncs can take output arguments.

Q. ___________ decompose the elements of x into mantissa and twos exponent.

Q. Which of the following function take only single value as input?

Q. The array object returned by __array_prepare__ is passed to the ufunc for computation.