1. Home
  2. Data Science
  3. Pandas
  4. Which aggregation does pivot_table apply when aggfunc is…

Added 30 Nov -0001

Which aggregation does pivot_table apply when aggfunc is omitted?

  1. The sum
  2. The count
  3. The maximum
  4. The mean Correct answer

Correct answer

D. The mean

14 views

MCQSEXAM

Explanation

pivot_table defaults to aggfunc='mean' and ignores non-numeric columns unless told otherwise.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Pandas MCQs

Practise all Pandas MCQs

Similar MCQs