Question 9 of 10Pro Only

You have a dataset with both numerical and categorical features, some with missing values. How would you build a preprocessing pipeline that handles all these cases appropriately?

Sample answer preview

Building a preprocessing pipeline for mixed data types requires combining ColumnTransformer with individual transformation pipelines for each column type. This approach handles the complexity while maintaining clean, reproducible code.

ColumnTransformerSimpleImputerOneHotEncoderStandardScalermixed typespreprocessing pipeline

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more AI/ML Engineer interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime