pivot_table() (Pandas)

df.pivot_table() reshapes long data into a wide summary grid.