1. Home
  2. MCQs by exam
  3. PPSC IT

PPSC IT MCQs · Page 14

577 multiple choice questions typical of the PPSC IT exam, with answers and explanations. Switch on practice mode to test yourself first.

Showing 326–350 of 577

Why use groupby(...).transform("mean") instead of groupby(...).agg("mean") in pandas?

  1. agg returns a Series while transform returns a scalar
  2. transform only works on datetime columns
  3. transform broadcasts group results back to every original row Correct answer
  4. transform is faster because it skips the grouping step entirely
MCQSEXAM Read explanation