ComenzarEmpieza gratis

One-hot encoding

In the previous exercise, we encountered a dataframe df1 which contained categorical features and therefore, was unsuitable for applying ML algorithms to.

In this exercise, your task is to convert df1 into a format that is suitable for machine learning.

Este ejercicio forma parte del curso

Feature Engineering for NLP in Python

Ver curso

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# Print the features of df1
print(____.____)
Editar y ejecutar código