答案 0 :(得分:0)
尝试以下代码,它将series
的列表转换为pandas
team_stat['First Half']['W'] = pd.Series(first_half_win_result)
答案 1 :(得分:0)
好吧,我找到了解决办法:
team_stat = team_stat.transpose()
team_stat.loc['First Half', 'W'] = first_half_win_result
team_stat = team_stat.transpose()