What function is used to calculate the mean of an array?
Correct answer
A. np.mean()
13 views
A. np.mean()
13 views
np.mean() computes the arithmetic mean of an array, optionally along an axis: np.mean(a, axis=0).
A bare mean() is not a built-in Python function; you can, however, call the method form a.mean() on an array.
For more solved questions like this one, see Data Science MCQs on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.