Avsnitt 2. Kapitel 5
single
Challenge
Svep för att visa menyn
Let's replace the negative values in the 'empinch' and 'invsth' columns with zeros using the .where() method.
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 5
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal