1. Home
  2. Data Science
  3. NumPy
  4. Which NumPy function is used to find the mean of an array?

Added 28 Jan 2024

Which NumPy function is used to find the mean of an array?

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

Correct answer

B. np.mean()

12 views

MCQSEXAM

Explanation

np.mean() computes the arithmetic mean of elements in a NumPy array.

Video explanation

Reference

https://www.w3schools.com/python/numpy/default.asp

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