Which NumPy function is used to find the mean of an array?
-
A
np.median()
-
B
np.mean()
Correct answer
-
C
np.average()
-
D
np.sum()
Correct answer
B. np.mean()
12 views
Explanation
np.mean() computes the arithmetic mean of elements in a NumPy array.
Video explanation
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ