I have the following dataframe.
df = pd.DataFrame({'A':['abc1@abc.com','abc2@abc.com','abc3@abc.com','abc4@abc.com','abc2@abc.com','abc3@abc.com'],
'B':[4,5,4,5,5,4],
})
I need to generate rollnumber for column A in the format
"string+!--10digitnumberstaringfrom1--+string"
If the values are repeated roll number should be unique.
Expected Output:
A B RollNumber
0 abc1@abc.com 4 ABC000000001AB
1 abc2@abc.com 5 ABC000000002AB
2 abc3@abc.com 4 ABC000000003AB
3 abc4@abc.com 5 ABC000000004AB
4 abc2@abc.com 5 ABC000000002AB
5 abc3@abc.com 4 ABC000000003AB