Python:如何从数据框生成表

时间:2019-02-09 11:45:03

标签: python pandas

所以我有这个问题。 以下是我使用Excel创建的数据

enter image description here

我想使用Pandas转换此表并成为它

enter image description here

试图弄清楚这个东西要花几个小时。如果我认为正确,我确实需要对xs,s,m,l,xl,xxl值使用itterrows()。永远不要使用itterows()。似乎我可以使用apply(),但是我不知道如何使用这两个方法并将其转换为xlsx。

0 个答案:

没有答案