Solution: Preprocessing
Follow the instructions for preprocessing data from a csv file.
There are multiple potential solutions for this coding challenge, depending on the methods we choose for each preprocessing step. Here is one possible solution:
Python 3.8
Files
In the code above we cover the following preprocessing workflow:
Line 20: Instantiate a
SimpleImputer
with the strategy set tomean
to handle missing values.Line 21: Apply the imputer to fill in missing values in the numeric ...