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.
Deze oefening maakt deel uit van de cursus
Exploratory Data Analysis in Python
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# Count the number of missing values in each column
print(____)