Challenge
Let's replace the negative values in the 'empinch'
and 'invsth'
columns with zeros using the .where()
method.
Tarea
Swipe to start coding
- Select the
'empinch'
and'invsth'
columns. - Apply the
.where()
method to chosen columns. - Set the condition what values must be replaced (these must be negative values). Remember, values that don't satisfy this condition will be replaced.
- Set the parameter what values must be used instead of replaced ones.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 5
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Awesome!
Completion rate improved to 2.56
Challenge
Desliza para mostrar el menú
Let's replace the negative values in the 'empinch'
and 'invsth'
columns with zeros using the .where()
method.
Tarea
Swipe to start coding
- Select the
'empinch'
and'invsth'
columns. - Apply the
.where()
method to chosen columns. - Set the condition what values must be replaced (these must be negative values). Remember, values that don't satisfy this condition will be replaced.
- Set the parameter what values must be used instead of replaced ones.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Awesome!
Completion rate improved to 2.56Sección 2. Capítulo 5
single