Q. Which method is used to create a pivot table in pandas?
β
Correct Answer: (B)
pivot_table()
Explanation: pivot_table() creates a spreadsheet-style pivot table for aggregation and analysis.