Imputing values in predictive models

When working with predictive models you will often have a separate train and test DataFrames. In these cases you want to ensure no information from your test set leaks into your train set. When filling missing values in data to be used in these situations how should approach the two datasets?

This exercise is part of the course

Feature Engineering for Machine Learning in Python

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise