1. Home
  2. Data Science
  3. NumPy
  4. Which NumPy function calculates the mean?

Added 16 Sep 2025

Which NumPy function calculates the mean?

  1. np.average()
  2. np.mean() Correct answer
  3. np.median()
  4. np.avg()

Correct answer

B. np.mean()

14 views

MCQSEXAM

Explanation

np.mean() calculates the arithmetic mean along the specified axis of an array.

Reference

Asked in: Data Science Exams

https://numpy.org/doc/stable/reference/generated/numpy.mean.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More NumPy MCQs

Practise all NumPy MCQs

Similar MCQs