← Quiz: groupby and merge: all 10 questions
Quiz: groupby and merge · Question 1 of 10
Students has 8 rows; a left merge with offers gives 9 rows. What is the most likely reason?
Students has 8 rows; a left merge with offers gives 9 rows. What is the most likely reason?
- A.pandas added a header row
- B.One student has two matching offers, so their row appears twice
- C.A left merge always adds one row
- D.An offer had a missing roll number
Answer & explanation
Correct answer: One student has two matching offers, so their row appears twice
Duplicate keys on the right multiply rows.
Can you get the rest right without peeking?
Take the timed Quiz: groupby and merge quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →