![]() |
VOOZH | about |
Given a series, the task is to print all the elements that are above the 75th percentile using Pandas in Python. There is a series of data, we have to find all the values of the series object whose value is greater than the 75th Percentile.
Output:
0 42
1 12
2 72
3 85
4 56
5 100
dtype: int32
75th Percentile is: 81.75
Values that are greater than 75th percentile are:
85
100
Explanation:
We have made a series object from an nd array and used the quantile() method to find the75% quantile or 75th percentile value of the data in the given series object and then use a for loop to find out all values of the series that are above the 75th percentile.