from pandas import *

def calculate(x):
    return x * 2, x * 3
df = DataFrame({'a': [1, 2, 3], 'b': [2, 3, 4]})
df
Pandas: create two new columns in a dataframe with values calculated from a pre-existing column