Digital.ai interview question

How do you construct a pivot table in pandas?