I am trying to figure out how to add a new column that tells me whether or not 2 columns are matched. Dummy data set below:
col_A col_B
food food
drink food
food drink
drink drink
What I want is something like this:
col_A col_B match_col
food food match
drink food no match
food drink no match
drink drink match
I am not sure if I need to a join or ifelse or combination of the two?