使用数据透视表转换数据框

时间:2019-01-25 13:33:03

标签: python pandas

我有一个简单的数据框:

enter image description here

我想将其转换为如下形式:

enter image description here

我一直在尝试用pivot_table来思考,但是现在运气不错。我不能完全确定数据透视表是否能够做到这一点。

0 个答案:

没有答案
相关问题