how to check if duplicate rows are present in a dataframe code example
Example 1: print duplicates elements in column pandas
mask = df.columnname.duplicated(keep=False)
print (df[mask])
Example 2: how to check for duplicates in a column in python
boolean = df['Student'].duplicated().any() # True