Get startedGet started for free

Removing outliers

While removing outliers isn't always the way to go, for your analysis, you've decided that you will only include flights where the "Price" is not an outlier.

Therefore, you need to find the upper threshold and then use it to remove values above this from the planes DataFrame.

pandas has been imported for you as pd, along with seaborn as sns.

This exercise is part of the course

Exploratory Data Analysis in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Find the 75th and 25th percentiles
price_seventy_fifth = ____["____"].____(____)
price_twenty_fifth = ____["____"].____(____)
Edit and Run Code