Session Ready
Exercise

Impute with interpolate method

Time-series data have trends of ups and downs against time. For this, filling flat series of values using methods like forward fill or backward fill is not suitable. A more apt imputation would be to use methods like linear or quadratic imputation, where the values are filled with incrementing or decrementing values.

In this exercise, you will work with the .interpolate() method on the airquality DataFrame. You will use linear, quadratic and nearest methods. You can also find the detailed list of strategies for interpolation here.

Instructions 1/3
undefined XP
  • 1
    • Interpolate missing values with the linear method.
    • 2
      • Interpolate missing values with the quadratic method.
    • 3
      • Interpolate missing values with the nearest method.