Class 12th CBSE IP

Given a Series, print all the elements that are above the 75th percentile.

Solution: – 

import pandas as pd import numpy as np s=pd.Series(np.array([1,3,4,7,8,8,9])) print(s) res=s.quantile(q=0.75) print() print('75th Percentile of the series is:::') print(res) print() print('The elements that are above the 75th percentile::') print(s[s>res])

Fun & Easy to follow
Works on all devices
Your own Pace
Super Affordable

Popular Videos

UX for Teams

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer

SEO & Instagram

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer

Leave a Reply

Your email address will not be published. Required fields are marked *

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.