Different Steps for Different Columns
A ColumnTransformer sends each list of columns through its own steps, so the number columns are filled with the median and standardized while the category columns are filled with the most frequent value and one-hot encoded, columns it isn't given are dropped by default, and as the first step of a pipeline it lets one fit and one predict handle a whole table, with get_feature_names_out listing the columns the model gets.
Updated

- Category
- Machine Learning
- Level
- Freelancer
- Tags
- ai, ColumnTransformer, get_feature_names_out(), make_column_transformer(), Pipeline (python), python