pandas drop_duclicates in a function code example Example: remove duplicate row in df df = df.drop_duplicates()