The first column in the dataframe is a random list of studentIDs. I would like to find out if there is any studentID that occur two times. If this is the case, I would like to print out the two lines where it happens.
StudentID   Name
s123456     Michael
s123789     Peter
s123789     Thomas 
s123579     Marie
I would like to print out:
"Two students have the same student id in line {} and {}"
 
     
    