DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+6 =
Submit