1.

Which of the following returns an array of ones with the same shape and type as a given array?(a) all_like(b) ones_like(c) one_alike(d) all of the mentionedThe question was posed to me in homework.Query is from NumPy in section Developing Data Products and Working with NumPy of Data Science

Answer»

Correct choice is (B) ones_like

The explanation is: The optional output ARGUMENTS of the function can be used to help you SAVE memory for LARGE calculations.



Discussion

No Comment Found

Related InterviewSolutions