Seksjon 1. Kapittel 22
single
Challenge: Slicing and Subsetting
Sveip for å vise menyen
Oppgave
Sveip for å begynne å kode
Subset a data frame based on a condition and select specific columns.
- Filter rows in
dfwhere the value incondition_colequalscondition_value. - Select only the columns specified in
select_colsfrom the filtered rows. - Return the resulting data frame.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 22
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