🎙 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 4 of 10

What does pivottable(index="company", columns="branch", aggfunc="count") show?

What does pivot_table(index="company", columns="branch", aggfunc="count") show?

  1. A.Average package per company
  2. B.Number of offers for each company–branch pair, as a grid
  3. C.The list of students
  4. D.Only companies with one offer
Answer & explanation

Correct answer: Number of offers for each company–branch pair, as a grid

It's groupby on two keys laid out as rows and columns.

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 →