📅  最后修改于: 2022-03-11 14:45:20.987000             🧑  作者: Mango
df.pivot_table(index=['First','Last'],columns='Group',values='Measure',fill_value=0)
Out[247]:
Group A B
First Last
Jane Doe 0 11
John Smith 2 0
Mary Johnson 1 0