如何在熊猫中将第2列的值显示为前一列的行值?

时间:2019-12-09 23:32:07

标签: python pandas pandas-groupby

这是可用数据: enter image description here

所需的输出为: enter image description here

我尝试过:

pd.crosstab(index=df_eur['Sector'], columns=df_eur['Industry'])

0 个答案:

没有答案