🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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 →
  1. Q1. What is the difference between loc and iloc?
  2. Q2. Which filter is correct for CGPA ≥ 7.5 AND no backlogs?
  3. Q3. In pandas 3, what dtype does a column of names get by default?
  4. Q4. Which method counts how many students come from each city?
  5. Q5. How do you add a column percent = cgpa × 9.5?
  6. Q6. What does this print? (code)
  7. Q7. Why can loc and iloc give different rows after you sort a DataFrame?
  8. Q8. What does this print? (code)
  9. Q9. Which two methods should you run first on every new dataset to understand it?
  10. Q10. How do you read a real CSV file called students.csv into a DataFrame?