def calculate(s):
    a = s['path'] + 2 * s['row']
b = s['path'] * 0.153
return pd.Series({'col1': a, 'col2': b})
df = df.merge(df.apply(calculate, axis=1), left_index=True, right_index=True)
Apply function to each row of pandas dataframe to create two new columns