我正在尝试将一个数据框列的值分配给另一数据框。
for j in practice_dataset_pateint.itertuples():
for i in practice_set.itertuples():
#print(i[1],i[7],i[8])
if j[1]==i[1]:
a=i[7]
b=i[8]
location=practice_dataset_pateint.columns.get_loc(a)
j[location]=i[8] //error line
practice_dataset_pateint