How to reshape/stack dataframe with multilevel column in Pandas

前端 未结 0 632
醉梦人生
醉梦人生 2021-02-06 07:49

I\'m new to Pandas reshaping, and am hoping to reshape a dataframe as shown below:

Input

Desired Output

#Tried df.stack

相关标签:
回答
  • 消灭零回复
提交回复
热议问题