I want to compare each element from one column to other and print value in new column
I am new in python facing problem while working on 1 assignment.
Here is the df
Index | min_experience | Experience (in months)
0 | 12.0 | 36
1 | 24.0 | 10
2 | 60.0 | 65
3 | 0.0 | 55
4 | 36.0 | 20
5 | 84.0 | 28
6 | 120.0 | 24
7 | 0.0 | 0
8 | 0.0 | 28
I need output like: each value in Column "Experience (in months)" should be compared with every value in column min_experience and give result in other column as selected or rejected.
Please help.