Selecting Data Based on Condition
To excel in programming, you always need to practice. So, in this task, you must also memorize functions from the previous chapter. If you aren't solid on the functions from the last chapter, look at the hints to revise them.
Uppgift
Swipe to start coding
- Extract all rows from the columns
'name
' and'hazardous'
using the.loc[]
attribute. - Filter data; extract rows where
'hazardous'
is True. - Output the first five rows of the
data_filtered
dataset.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 2
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
Awesome!
Completion rate improved to 3.03
Selecting Data Based on Condition
Svep för att visa menyn
To excel in programming, you always need to practice. So, in this task, you must also memorize functions from the previous chapter. If you aren't solid on the functions from the last chapter, look at the hints to revise them.
Uppgift
Swipe to start coding
- Extract all rows from the columns
'name
' and'hazardous'
using the.loc[]
attribute. - Filter data; extract rows where
'hazardous'
is True. - Output the first five rows of the
data_filtered
dataset.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Awesome!
Completion rate improved to 3.03Avsnitt 2. Kapitel 2
single