def my_test(a, b):
return a + b
df['value'] = df.apply(lambda row: my_test(row['c1'], row['c2']), axis=1)
pandas dataframe 同时操作两列
猜你喜欢
转载自blog.csdn.net/guotong1988/article/details/80887630
今日推荐
周排行