I have the following df:
A B C
100 2 3
-100 2 3
I want a new column that multiplies either column B or C by the value of column A:
if A<0:
D = A*B
if A>=0:
D = A*C
So in the end I get:
A B C D
100 2 3 200
-100 2 3 -300