Section 1. Chapitre 22
single
Challenge: Slicing and Subsetting
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 22
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion