【发布时间】:2020-06-23 11:04:03
【问题描述】:
我有一个像这样的 pandas 数据框,其中所有类别的头部数量都可用:
Table depicting category wise head wise values where the heads are in the columns
现在,我想要一个 pandas 函数返回如下图所示的数据框,其中每个类别的头部值将显示为行:
Table where all the heads for a particular category appears as a separate row instead of column
【问题讨论】:
标签: python-3.x pandas dataframe rows