重塑“以对象为值的长到宽列”的问题

时间:2019-03-18 02:14:14

标签: python pandas object pivot

我尝试将以下数据框从长到宽调整形状。

enter image description here

我希望它成为:

enter image description here

其中我的A,B和C列下的值是我违反列的频率的计数。

如何快速执行此操作?我找不到任何相关的数据透视文件。

谢谢!

0 个答案:

没有答案