🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.pandas added a header row
  2. B.One student has two matching offers, so their row appears twice
  3. C.A left merge always adds one row
  4. 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 →