Passthrough some columns and drop others in a ColumnTransformer

Поделиться
HTML-код
  • Опубликовано: 11 сен 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

Комментарии • 4

  • @dataschool
    @dataschool  2 года назад +1

    I love the flexibility of ColumnTransformer! Here's another tip that will show you 7 more ways to select columns: ruclips.net/video/sCt4LVD5hPc/видео.html

  • @pakipower
    @pakipower 2 года назад +1

    Great tips Kevin, keep them coming👍

  • @modhua4497
    @modhua4497 2 года назад

    Thanks Kevin
    What happen if you want to impute missing as Medium instead of average?