Make_column_transformer

Hi

What’s the difference between make_column_transformer and ColumnTransformer?

Best

make_column_transformer is a convenience helper tool (factory function). It is described in the scikit-learn documentation as follows:

Construct a ColumnTransformer from the given transformers.

This is a shorthand for the ColumnTransformer constructor; it does not require, and does not permit, naming the transformers. Instead, they will be given names automatically based on their types. It also does not allow weighting with transformer_weights.