I\'m using a for loop to access a specific row value and to join two dataframes.
w=[\'AB\', \'BC\', \'CD\'] for each_item in w: each_item_df1 = df2.loc[