Suppose I have a df which has columns of \'ID\', \'col_1\', \'col_2\'. And I define a function :
df
\'ID\', \'col_1\', \'col_2\'
f = lambda x, y : my_function_expres
A simple solution is:
df['col_3'] = df[['col_1','col_2']].apply(lambda x: f(*x), axis=1)