performing a merge function in python, when I don't want the values to repeat
问题 HI This is a follow up from one of my previous questions how do I perform a vlookup equivalent operation on my dataframe with some additional conditions As in the other question, my first dataframe is list = ['Computer', 'AA', 'Monitor', 'BB', 'Printer1', 'BB', 'Desk', 'AA', 'Printer2', 'DD', 'Desk', 'BB'] list2 = [1500, 232, 300, 2323, 150, 2323, 250, 2323, 23, 34, 45, 56] df = pd.DataFrame(list,columns=['product']) df['number'] = list2 and what if my 2nd dataframe has multiple values for