I have a dataframe with two country descriptions. Sometimes they match, sometimes they don't.
Country Desc1 Country Desc2
1 US US
2 US UK
3 UK US
4 UK UK
I need to 1.) insert another column (Country Desc3) with all the row values populated with 2.) a rule that returns Country Desc1 if it matches Country Desc2.
NaNI will recommend Both @piRSquared 's and @Rayhane Mama's answer