Hi Jason,
I had a question regarding the variables you kept in your ‘encode_data’ dataframe. Your target variable ‘Survived’ remains in here. To what extent is it desirable to use the information of your target variable in your KNN imputation to impute missing value for your X variables ?
best, Bobby