📜  将 lambda 函数应用于多列 pandas - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:23.314000             🧑  作者: Mango

代码示例2
df['new_col'] = df.apply(lambda x: some_func(x['col1'], x['col2']))