Challenge: Filling the Missing Values

Learn how to fill the missing values in a Pandas DataFrame.

We'll cover the following

Problem statement

We have the following DataFrame with two columns and ten rows. We want to fill the missing values in the measurement column with their previous values, but we’re only allowed to fill two consecutive values with this method. The remaining ones need to be filled with the average value of the column.

Get hands-on with 1200+ tech skills courses.