The default aggregate function in the context of "pivot tables" is ______________.
The default aggregate function in the context of "pivot tables" is ______________.
Solution
✅ Correct Option: 3
In pandas, the pivot_table() function uses aggfunc='mean' by default. If no aggregate function is given, it groups the data by the index and column labels and returns the mean of the values in each group.
For example, df.pivot_table(values='Sales', index='Region') gives the average sales for each region.
Excel's PivotTable is different: its default for numeric fields is Sum, which is not among the options.
Related questions:
2026: 23 May Shift 1
2026: 23 May Shift 1
2026: 21 May Shift 1
2026: 31 May Shift 1