在熊猫数据框中转换列,同时保持其他列完整无缺 [英]Transposing a column in a pandas dataframe while keeping other column intact with duplicates