import pandas as pd df = pd.DataFrame({'A': [1, 2], 'B': [3, 4]}) df_new = df.assign(C = df['A'] + df['B']) print(df_new)