Challenge: Build a Preprocessing Workflow
Tarefa
Swipe to start coding
You are building a basic preprocessing workflow using scikit-learn.
- Use
SimpleImputer(strategy="mean")for numeric columns. - Use
OneHotEncoder(sparse=False)for categorical columns. - Apply both transformations using a
ColumnTransformernamedpreprocessor. - Fit and transform the DataFrame
df. - Store the result in the variable
result.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 4
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 5.26
Challenge: Build a Preprocessing Workflow
Deslize para mostrar o menu
Tarefa
Swipe to start coding
You are building a basic preprocessing workflow using scikit-learn.
- Use
SimpleImputer(strategy="mean")for numeric columns. - Use
OneHotEncoder(sparse=False)for categorical columns. - Apply both transformations using a
ColumnTransformernamedpreprocessor. - Fit and transform the DataFrame
df. - Store the result in the variable
result.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 4
single