Which NumPy function calculates the mean?
-
A
np.average()
-
B
np.mean()
Correct answer
-
C
np.median()
-
D
np.avg()
Correct answer
B. np.mean()
14 views
Explanation
np.mean() calculates the arithmetic mean along the specified axis of an array.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ