Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What command would you use to select the 'Name' column?
Use single brackets for a single column.
How do you filter for ages greater than 30?
Use the greater than operator inside the brackets.
What will df[['Name']] return?
Think about the brackets you use.
True or False: Filtering allows you to remove rows based on certain conditions.
Consider what filtering does to the data you see.
Given the following DataFrame 'students', write a command to extract names of students who scored above 80 and attended more than 5 hours.
Use logical operators to combine multiple conditions.
If you have a DataFrame of sales data, and you want to extract the 10 recent sales transactions above $1000, how would you approach this?
Filter first, then use head to limit your results.
5 more questions in this section. Enroll free to practise them all.
Enroll free