Module 6 · Lesson 5 of 531/56 in the course~22 min
Module lessons (5/5)
Pipelines and ColumnTransformer
Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 6 — Data preparation and pipelines
Different preprocessing per column inside one leak-proof pipeline.
What you'll learn in this lesson
- Apply different preprocessing to numeric and categorical columns with
ColumnTransformer. - Chain preprocessing and a model in one leak-proof
Pipeline. - Evaluate and reuse the whole pipeline as a single object.
Overview
Real tables mix column types: numbers that need imputing and scaling, categories that need one-hot encoding. A ColumnTransformer routes each transformer to its matching columns, and a Pipeline connects that preprocessing cleanly in front of your estimator.
Inspect how a single Pipeline + ColumnTransformer isolates statistics inside each CV fold:
Sections covered in this lesson
- 1The hook: one object, no leaks
- 2Try it: interactive pipeline step inspector
- 3Progressive examples: building production pipelines
- 4Practice
- 5Check your understanding
Pro Lesson · Module 6 — Data preparation and pipelines
Unlock "Pipelines and ColumnTransformer" and the full Machine Learning: from first principles to practice curriculum
Different preprocessing per column inside one leak-proof pipeline.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.