Seksjon 1. Kapittel 21
single
Selecting by Condition
Sveip for å vise menyen
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.
Oppgave
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_filtereddataset.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 21
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår