drop the duplicate based on one column of a dataframe code example Example: remove duplicate row in df df = df.drop_duplicates()