I am trying to calculate the mean+3*std for every row in 2 cols of my df (named: controls), and then add value as a new col. My code is this:
for l, r in controls[['means1', 'std1']]:
controls['Threshold']=l+(3*r)
I am getting this error:
ValueError: too many values to unpack (expected 2)
I would appreciate any advice or help!
Thank you, S