Answers for "new column with addition of other columns"

0

new column with addition of other columns

df['C'] = df.apply(lambda row: row['A'] + row['B'], axis=1)
Posted by: Guest on September-11-2021

Code answers related to "new column with addition of other columns"

Python Answers by Framework

Browse Popular Code Answers by Language