Google News
logo
NumPy - Quiz(MCQ)
The ________ function returns its argument with a modified shape, whereas the ________ method modifies the array itself.
A)
resize, reshape
B)
reshape, resize
C)
reshape2, resize
D)
None of the above

Correct Answer :   reshape, resize


Explanation : If a dimension is given as -1 in a reshaping operation, the other dimensions are automatically calculated.

Advertisement