Apologies for the title, I couldn't find a better way to frame my question.
I have two columns df['c1'], df['c2']. I want to pass every value from both these columns into a function to get a result (for every row) and have this series of results as a new column df['c3'].
what I've tried:
df['c3'] = function(df['c1'], df['c2'])
Unfortunately I get TypeError: cannot convert the series to class 'float'
So how exactly do I iterate over every value of both the series (df['c1'], df['c2']) to produce my column df['c3'] ?