How to find that each student number belongs to unique student?
df.groupby(["student_name"])["passport_number"].nunique() > 1
You can use the groupby and nunique function to help you identify repeats. Hope this answer your question.
I have a data frame and around 10-12 columns. One of the column is the student number e.g. 1234567 and the other is an identifier e.g passport numbers, license number . How can I find that each student has a unique identifier. Like student 1234567 has identifier ABC5679K only. Also I want to store the students who are tagged with duplicate identifier. For e.g. If student 1234567 also has identifier ABC3408T, I want to know those.