import pandas as pd
Let\'s say I have a dataframe like so:
dataframe
df = pd.DataFrame({\"a\":range(4),\"b\":range(1,5)})
df["e"], df["f"] = zip(*df.apply( lambda x: divideAndMultiply(x["a"],2) , axis =1))
Should do the trick.
(I show this example so you can see how to use multiple columns as the input to create multiple new columns)