I want to do: IF a column contains values , then apply a change to joinkey column, IF a column contains different values, then apply a different change to joinkey column, etc.
IF df.loc[df['product'].isin('value1','value2')
THEN df['joinkey'] = df['joinkey'] + variable1
then repeat
IF df.loc[df['product'].isin('value3','value4')
THEN df['joinkey'] = df['joinkey'] + variable2
Hopefully this makes sense, any help would be appreciated.
Thanks.