how to drop duplicate rows in python code example Example: remove duplicate row in df df = df.drop_duplicates()