Dealing with missing data
It is important to deal with missing data before starting your analysis.
One approach is to drop missing values if they account for a small proportion, typically five percent, of your data.
Working with a dataset on plane ticket prices, stored as a pandas DataFrame called planes, you'll need to count the number of missing values across all columns, calculate five percent of all values, use this threshold to remove observations, and check how many missing values remain in the dataset.
Latihan ini adalah bagian dari kursus
Exploratory Data Analysis in Python
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Count the number of missing values in each column
print(____)