Missing data
Let's now explore different methods to handle missing data.
It's important to know different methods to deal with missing data, since you are not always allowed to drop observations from the dataset.
The dataset data
and pandas as pd
are available in your session.
Cet exercice fait partie du cours
Analyzing IoT Data in Python
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Print head of the DataFrame
print(data.head())
# Drop missing rows
data_clean = ____
____