我有一个熊猫DataFrame,我想重塑它。
Country 1991 1992 1993
Deutschland 1 2 3
Griechenland 4 7 0
如何创建一个新的DataFrame,如下所示:
Country Year Value
Deutschland 1991 1
Deutschland 1992 2
Deutschland 1993 3
Griechenland 1991 4
Griechenland 1992 7
Griechenland 1993 0
https://stackoverflow.com/questions/55171153
复制相似问题