How can I iterate through two dataframes and assign a new values based on compared columns?
问题 I have two different dataframes: A, B. The column Event has similar data that I'm using to compare the two dataframes. I want to give Dataframe A a new column, dfA.newContext#. In order to do this, I'll need to use the Event column. I want to iterate through Dataframe A to find a match for Event and assign the dfB.context# to dfA.newContext# I think a loop would be the best way since I have a few conditions that I need to check. This might be asking a bit much but I'm really stuck.. I want to