python: remove duplicate in a specific column

df = df.drop_duplicates(subset=['Column1', 'Column2'], keep='first')

Here is what the above code is Doing:
1. We’re creating a new DataFrame called df_no_duplicates that contains all of the rows from df.
2. We’re using the drop_duplicates() method to remove any rows from df_no_duplicates that have duplicate values in the ‘Column1’ and ‘Column2’ columns.
3. We’re specifying that we want to keep the first instance of any duplicate row by setting the keep parameter to ‘first’.