MulaiMulai sekarang secara gratis

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

Latihan ini adalah bagian dari kursus

Exploratory Data Analysis in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

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

print(airline_prices)
Edit dan Jalankan Kode