pandas dataframe remove all rows with duplicate in another dataframe code example Example: remove duplicate row in df df = df.drop_duplicates()