No video

Passthrough some columns and drop others in a ColumnTransformer

  Рет қаралды 4,355

Data School

Data School

Күн бұрын

In a ColumnTransformer, you can use the strings 'passthrough' and 'drop' in place of a transformer. Useful if you need to passthrough some columns and drop others!
👉 New tips every TUESDAY and THURSDAY! 👈
🎥 Watch all tips: • scikit-learn tips
🗒️ Code for all tips: github.com/jus...
💌 Get tips via email: scikit-learn.tips
=== WANT TO GET BETTER AT MACHINE LEARNING? ===
1) LEARN THE FUNDAMENTALS in my intro course (free!): courses.datasc...
2) BUILD YOUR ML CONFIDENCE in my intermediate course: courses.datasc...
3) LET'S CONNECT!
- Newsletter: www.dataschool...
- Twitter: / justmarkham
- Facebook: / datascienceschool
- LinkedIn: / justmarkham

Пікірлер: 4
@dataschool
@dataschool 2 жыл бұрын
I love the flexibility of ColumnTransformer! Here's another tip that will show you 7 more ways to select columns: kzfaq.info/get/bejne/qamkZ6-HqZvMgJc.html
@SalmanbinAthar
@SalmanbinAthar 2 жыл бұрын
Great tips Kevin, keep them coming👍
@dataschool
@dataschool 2 жыл бұрын
Thank you!
@modhua4497
@modhua4497 2 жыл бұрын
Thanks Kevin What happen if you want to impute missing as Medium instead of average?
Use OrdinalEncoder instead of OneHotEncoder with tree-based models
6:59
Simplify Data Preprocessing with Python's Column Transformer: A Step-by-Step Guide
13:52
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 30 МЛН
123 GO! Houseによる偽の舌ドッキリ 😂👅
00:20
123 GO! HOUSE Japanese
Рет қаралды 5 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 27 МЛН
How do I encode categorical features using scikit-learn?
27:59
Data School
Рет қаралды 138 М.
21 more pandas tricks
24:40
Data School
Рет қаралды 47 М.
Use cross_val_score and GridSearchCV on a Pipeline
7:02
Data School
Рет қаралды 13 М.
One Hot Encoder with Python Machine Learning (Scikit-Learn)
9:03
Ryan & Matt Data Science
Рет қаралды 17 М.
Adapt this pattern to solve many Machine Learning problems
7:49
Data School
Рет қаралды 12 М.
Pandas for Data Science in 20 Minutes | Python Crash Course
23:06
Nicholas Renotte
Рет қаралды 121 М.
Predicting Stock Prices in Python
29:14
NeuralNine
Рет қаралды 531 М.
Time Series Forecasting with XGBoost - Advanced Methods
22:02
Rob Mulla
Рет қаралды 119 М.
Create feature interactions using PolynomialFeatures
4:08
Data School
Рет қаралды 7 М.