Change cols to subset in drop_duplicates and duplicated

Related #6680