1. Learn
  2. /
  3. Courses
  4. /
  5. Analyzing IoT Data in Python

Connected

Exercise

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.

Instructions 1/2

undefined XP
  • 1

    Drop rows with missing data and print the first 5 rows.

  • 2

    Fill the missing values via forward-fill and print first 5 rows of cleaned DataFrame.