Duplicated rows when merging dataframes in python Duplicated rows when merging dataframes in python python-3.x python-3.x

Duplicated rows when merging dataframes in python


list_2_nodups = list_2.drop_duplicates()pd.merge(list_1 , list_2_nodups , on=['email_address'])

enter image description here

The duplicate rows are expected. Each john smith in list_1 matches with each john smith in list_2. I had to drop the duplicates in one of the lists. I chose list_2.