For example lets say I have a df
a    b     c       
1    3     5       
5    9     4      
and I have ifconditions:
if a < 2:
   3
elif  a < 3:
   4
else: b + c
How do I test the conditions and returns a result for each row of my df like below?
a    b     c    d
1    3     5    3 
5    9     4    13
edit: Ideally I want to create a function that allows me to
def function(a, b, c)
df['d'] = function(a, b, c) 
and calculate for all rows of data. Because in the actual data, there is 100+ condition statements and 10s of columns.
 
     
    