Challenge: Filter and Sort Data
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 12
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5.56
Challenge: Filter and Sort Data
Swipe to show menu
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 12
single