I\'m a python newbie, so I hope my two questions are clear and complete. I posted the actual code and a test data set in csv format below.
I\'ve been able to construct t
If I understand you right, what you should be doing is returning a Series from your function. Something like:
return pandas.Series({"IV": iv, "Vega": vega})
If you want to put the result into new columns of the same input DataFrame, then just do:
df[["IV", "Vega"]] = df.apply(newtonRap, axis=1)