I have 2 columns in my table. "dB1" and "dB2" Now I want to calculate a third columnn "dB3" depending of the entries in column "dB1" and "dB2"
if "dB1" or "dB2" have an entry of "0" I want to calculate: "dB1" + "dB2"
if neither "dB1" nor "dB2" have an entry of "0" I want to calculate: 10*log(10^(0,1*"dB1")+10*(0,1*dB2))
I struggle with the syntax and the if clause here... Can someone give me the code as I theoretically know how it should be done but can't work around the syntax in python...