开发者

Pandas dataframe transpose row and header with duplicate first column values

I 开发者_开发百科have a dataframe that looks like this

Pandas dataframe transpose row and header with duplicate first column values

I would like to rearrange the dataframe so that for each cell on the first column, it has 27 columns by transpose the row and header. It is hard to describe but the desired output should look like:

Pandas dataframe transpose row and header with duplicate first column values

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜