Q. Which pandas function is used to pivot a table with aggregation?
β
Correct Answer: (B)
pivot_table()
Explanation: pivot_table() allows aggregation of values while reshaping the DataFrame, unlike pivot() which requires unique index/columns.