1. Home
  2. Data Science
  3. NumPy
  4. What does the np.percentile() function do in NumPy?

Added 25 Feb 2024

What does the np.percentile() function do in NumPy?

  1. Computes the median of elements in an array
  2. Computes the mean of elements in an array
  3. Computes the standard deviation of elements in an array
  4. Computes the nth percentile of elements in an array Correct answer

Correct answer

D. Computes the nth percentile of elements in an array

14 views

MCQSEXAM

Explanation

The np.percentile() function calculates the value below which a given percentage of observations fall in a dataset. It is useful for understanding the distribution and variability of data.

Doubts & discussion

Not sure why the answer is D? 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