Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

new column with addition of other columns

df['C'] = df.apply(lambda row: row['A'] + row['B'], axis=1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #column #addition #columns
ADD COMMENT
Topic
Name
3+6 =