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.
This exercise is part of the course
Analyzing IoT Data in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Print head of the DataFrame
print(data.head())
# Drop missing rows
data_clean = ____
____