How to Find Percentiles Using NumPy Percentile() Method


In this example we will show how to find the percentiles using the NumPy percentile() method in Python.

Source Code

import numpy as np

num = [15, 20, 18, 32, 23, 28, 17, 22, 35, 6, 14, 34, 27, 40, 34, 19]

a = np.percentile(num, 75)

print(a)

Output:

32.5
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments