Let\'s say we have a dataframe that looks like this: df, and I want to use pandas pivot table to format it in this way: Pivot in Excel. However, df.pivot_table(index=\'Gro
df.pivot_table(index=\'Gro