1.

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 mentionedI have been asked this question during an online exam.The above asked question is from NumPy topic in division Developing Data Products and Working with NumPy of Data Science

Answer»

The correct ANSWER is (a) reshape, resize

Easy explanation - If a dimension is given as -1 in a RESHAPING operation, the other DIMENSIONS are AUTOMATICALLY calculated.



Discussion

No Comment Found

Related InterviewSolutions