Digital.ai Interview Question

How do you construct a pivot table in pandas?