df pandas remove duplicates by columns code example
Example: python: remove duplicate in a specific column
df = df.drop_duplicates(subset=['Column1', 'Column2'], keep='first')
df = df.drop_duplicates(subset=['Column1', 'Column2'], keep='first')