1. Learn
  2. /
  3. Courses
  4. /
  5. Dealing with Missing Data in Python

Exercise

Filling missing time-series data

Imputing time-series data requires a specialized treatment. Time-series data usually comes with special characteristics such trend, seasonality and cyclicality of which we can exploit when imputing missing values in the data. In the airquality DataFrame, you can observe these characteristics. Your goal is to impute the values in such a way that these characteristics are accounted for.

In this exercise, you'll try using the .fillna() method to impute time-series data. You will use the forward fill and backward fill strategies for imputing time series data.

Instructions 1/2

undefined XP
  • 1
    • Impute missing values using the forward fill method.
  • 2
    • Impute missing values using the backward fill method.