Splits, imputers, encoders, scalers, pipelines and outliers in scikit-learn.
Before a model is trained the data has to be split, filled, encoded and scaled, and every one of those steps must learn only from the training rows. This topic does that with scikit-learn: stratified splits, SimpleImputer, OneHotEncoder, StandardScaler and RobustScaler, ColumnTransformer and Pipeline, class weights for rare outcomes, cross-validation and IsolationForest for unusual rows.
It also shows what outliers do to models. One wrong rent can turn a linear regression slope negative, and one extreme point can take a whole K-Means cluster for itself. Interviews ask these questions because a strong model on badly prepared data fails in real use.
The loan questions share one split of the same 30 applications, so the numbers from one question can be compared with the next.