drop all coloumns based on duplicate in one row pandas code example Example: remove duplicates based on two columns in dataframe df.drop_duplicates(['A','B'],keep= 'last')