Challenge: Filter and Sort Data
Opgave
Swipe to start coding
Filter a data frame to show only students who passed, and sort the results by their scores.
- Select only the rows in
dfwhere thepassedcolumn isTRUE. - Sort the resulting rows in descending order based on the
scorecolumn. - Return the filtered and sorted data frame.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 6
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Can you explain this in simpler terms?
What are some examples related to this topic?
Where can I learn more about this?
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Filter and Sort Data
Stryg for at vise menuen
Opgave
Swipe to start coding
Filter a data frame to show only students who passed, and sort the results by their scores.
- Select only the rows in
dfwhere thepassedcolumn isTRUE. - Sort the resulting rows in descending order based on the
scorecolumn. - Return the filtered and sorted data frame.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 6
single