← All topics
Quiz: pandas Basics: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What is the difference between loc and iloc?
- Q2. Which filter is correct for CGPA ≥ 7.5 AND no backlogs?
- Q3. In pandas 3, what dtype does a column of names get by default?
- Q4. Which method counts how many students come from each city?
- Q5. How do you add a column percent = cgpa × 9.5?
- Q6. What does this print? (code)
- Q7. Why can loc and iloc give different rows after you sort a DataFrame?
- Q8. What does this print? (code)
- Q9. Which two methods should you run first on every new dataset to understand it?
- Q10. How do you read a real CSV file called students.csv into a DataFrame?