Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add values of two columns pandas

df['sum'] = df['a'] + df['b']  # sum is a new column
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #values #columns #pandas
ADD COMMENT
Topic
Name
8+3 =