标签: jupyter-notebook type-conversion grouping
我每个ID字段都有三行,一列包含三个值(-1,0,1),而ID字段的列分别为-1、0和1。我想将第二列转换为单个列。我该怎么做?