drop duplicates pandas based on a column code example Example: remove duplicate row in df df = df.drop_duplicates()