Challenge
Let's replace the negative values in the 'empinch' and 'invsth' columns with zeros using the .where() method.
Tarefa
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 5
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Suggested prompts:
Resumir este capítulo
Explicar o código em file
Explicar por que file não resolve a tarefa
Awesome!
Completion rate improved to 2.56
Challenge
Deslize para mostrar o menu
Let's replace the negative values in the 'empinch' and 'invsth' columns with zeros using the .where() method.
Tarefa
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 5
single