multi-column factorize in pandas,df.drop_duplicates()