Which function is used to find the maximum value in an array?
Correct answer
C. np.max()
13 views
C. np.max()
13 views
np.max() returns the largest value in an array and accepts an axis argument for row-wise or column-wise maxima.
Do not confuse it with np.maximum(), which compares two arrays element by element. The array method arr.max() is equivalent.
Practise more Data Science MCQs with answers and explanations on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.