pandas check for duplicates and drop them code example Example: remove duplicate row in df df = df.drop_duplicates()