Here is a DF for example
index A B C D(new Column)
0 1 2 3 ?
1 11 22 33 ?
2 111 222 333 ?
Now, i want to apply a new(D) column to this DF depends on A column
if A column=1 apply B column's value(NOT LIST JUST VALUE) as new col if A column=11 apply C column's value(NOT LIST JUST VALUE) as new col....
Firstly, I tried but it return me a LIST(Series) not the value; So i tried to locate it by index, but i need to get the index of each row, and use it to locate the value(may be I wrong)
So, what is the easiest way to do it?