A feature disappears after ColumnTransformer even though no selector names it. What default explains this?
Classic MLLevel: IntermediateUnspecified columns
A feature disappears after ColumnTransformer even though no selector names it. What default explains this?
Hints
- Examine the remainder policy.
- Omission is not automatic passthrough.
Answer
Unspecified columns are dropped by default. Set remainder='passthrough' or an appropriate remainder estimator only when that behavior matches the intended feature schema.
Source and licence: scikit-learn 1.7.2 — compose · BSD-3-Clause · answer: Quantoros editorial