Exercise

Plot interpolations

Plotting comparative graphs for the imputations is essential for inferring the best imputation technique. In this exercise, you'll create a for loop for generating plots for multiple imputation techniques. You will create the plots of the imputations you performed in the previous lesson i.e., the linear, the quadratic, and the nearest interpolation techniques.

Three DataFrames named after their imputation techniques have already been imported for you, namely, linear_interp, quadratic_interp, and nearest_interp

Instructions

100 XP
  • Create 3 subplots for each imputation technique.
  • Create the interpolations dictionary by mapping the linear_interp, quadratic_interp, and nearest_interp DataFrames to the relevant interpolation technique.
  • Loop over axes and interpolations.
  • Select each DataFrame in interpolations and set the title for a DataFrame using df_key.