Challenge
Let's replace the negative values in the 'empinch' and 'invsth' columns with zeros using the .where() method.
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 5
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Suggested prompts:
Résumer ce chapitre
Expliquer le code dans file
Expliquer pourquoi file ne résout pas la tâche
Awesome!
Completion rate improved to 2.56
Challenge
Glissez pour afficher le menu
Let's replace the negative values in the 'empinch' and 'invsth' columns with zeros using the .where() method.
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 5
single