4.6 - Selecting and Filtering Data
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What command would you use to select the 'Name' column?
💡 Hint: Use single brackets for a single column.
How do you filter for ages greater than 30?
💡 Hint: Use the greater than operator inside the brackets.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What will df[['Name']] return?
💡 Hint: Think about the brackets you use.
True or False: Filtering allows you to remove rows based on certain conditions.
💡 Hint: Consider what filtering does to the data you see.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Given the following DataFrame 'students', write a command to extract names of students who scored above 80 and attended more than 5 hours.
💡 Hint: 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?
💡 Hint: Filter first, then use head to limit your results.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.