SyntaxFix
Write A Post
Hire A Developer
Questions
You could use sum function to achieve that as @EdChum mentioned in the comment:
sum
df['C'] = df[['A', 'B']].sum(axis=1) In [245]: df Out[245]: A B C 0 1 4 5 1 2 6 8 2 3 9 12