8种列相加方法
# python 循環 + iloc 定位
def method0_sum(DF):
for i in range(len(DF)):
DF.iloc[i,5] = DF.iloc[i,0] + DF.iloc[i,1]
# python 循環 + iat 定位
def method1_sum(DF):
for i in range(len(DF)):
DF.iat[i,5] = DF.iat[i,0] + DF.iat[i,1]
# pandas.DataFrame.iterrows() 迭代器
def method2_sum(DF):
for index, rows in DF.iterrow