I have pd dataframe (data) with three columns, X, Y and Z.
I need to run the following:
X * Y where Z = 'value'
I'm working along the lines of:
data[data['Z'] == 'value',[data['X']*data['Y']]]
Now I know that this isn't correct, but I can smell the correct answer. Can someone point me in the right direction?