I want to insert values for col 3 as follows:
A+ if col 1 is a and col 2 is positive
A- if col 1 is a and col 2 is negative
B+ if col 1 is B and col 2 is positive
B- if col 1 is B and col 2 is negative
Data:
COL1 COL2 COL3
0 a -2
1 a 4
2 b 10
3 b -8
4 a 10
5 b 5
Therefore I want a resulting df of:
COL1 COL2 COL3
0 a -2 A-
1 a 4 A+
2 b 10 B+
3 b -8 B-
4 a 10 A+
5 b 5 B+