Which aggregation does pivot_table apply when aggfunc is omitted?
-
A
The sum
-
B
The count
-
C
The maximum
-
D
The mean
Correct answer
Correct answer
D. The mean
14 views
Explanation
pivot_table defaults to aggfunc='mean' and ignores non-numeric columns unless told otherwise.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ