Passthrough some columns and drop others in a ColumnTransformer
Вставка
- Опубліковано 29 вер 2024
- 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
I love the flexibility of ColumnTransformer! Here's another tip that will show you 7 more ways to select columns: ua-cam.com/video/sCt4LVD5hPc/v-deo.html
Thanks Kevin
What happen if you want to impute missing as Medium instead of average?
Great tips Kevin, keep them coming👍
Thank you!