标签: python pandas pandas-groupby
这是可用数据: enter image description here
所需的输出为: enter image description here
我尝试过:
pd.crosstab(index=df_eur['Sector'], columns=df_eur['Industry'])