how to remove duplicates in column dataframe python 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')