pandas遍历行,不同于apply,适用于一些复杂场景

for index, row in df.iterrows():
df.loc[index,'deltaLoad']=_calc_deltaLoad(row['deltaTmp'],row['today_mean_tmp'])

posted @ 2022-01-28 11:36  笨笨和呆呆  阅读(71)  评论(0)    收藏  举报