替换系列值熊猫

问题描述 投票:0回答:1

我有以下数据框:

enter image description here

而且我有以下列表:

enter image description here

并且我想将team_stat ['First Half'] ['W']的序列值替换为first_half_win_result的列表值

enter image description here

python-3.x pandas jupyter-notebook
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.