Aan de slagGa gratis aan de slag

Imputing missing plane prices

Now there's just one column with missing values left!

You've removed the "Additional_Info" column from planes—the last step is to impute the missing data in the "Price" column of the dataset.

As a reminder, you generated this boxplot, which suggested that imputing the median price based on the "Airline" is a solid approach!

Box plot of plane ticket prices by Airline

Deze oefening maakt deel uit van de cursus

Exploratory Data Analysis in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Calculate median plane ticket prices by Airline
airline_prices = planes.____("____")["____"].____()

print(airline_prices)
Code bewerken en uitvoeren