I have the following dataframe.
df = pd.DataFrame({'A':['[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]'],
'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 [email protected] 4 ABC000000001AB
1 [email protected] 5 ABC000000002AB
2 [email protected] 4 ABC000000003AB
3 [email protected] 5 ABC000000004AB
4 [email protected] 5 ABC000000002AB
5 [email protected] 4 ABC000000003AB