I have an unordered python list, what I want is to create 2nd list which will tell either the values in the first list are duplicate or unique. For duplicates i have to mark them as duplicate1, duplicate2 and so on. I will create a dictionary from these lists and later on these will be use in pandas dataframe.
I am stuck on logic of 2nd_list, could someone please help.
first_List = ['a', 'b', 'c', 'a', 'd', 'c']
EXPECTED OUTPUT:
second_List = ['dup1', 'unique', 'dup1', 'dup2', 'unique', 'dup2']