I have a data-frame :
df1 = pd.DataFrame({'col1': [1000, 10000, -100], 'col2': [-5,10000, 200 ]})
I would like two conditions: if (col1 * col2) < 0 and abs(col2 – col1) > 1000 then ‘Target’, else ‘No’ So the result could be:
How can I do it without having to create supportive columns?