def my_test(a, b): return a + b df['value'] = df.apply(lambda row: my_test(row['c1'], row['c2']), axis=1)
转载
https://blog.csdn.net/guotong1988/article/details/80887630?utm_source=blogxgwz9
def my_test(a, b): return a + b df['value'] = df.apply(lambda row: my_test(row['c1'], row['c2']), axis=1)
转载
https://blog.csdn.net/guotong1988/article/details/80887630?utm_source=blogxgwz9