← 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?
- A.Average package per company
- B.Number of offers for each company–branch pair, as a grid
- C.The list of students
- 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 →