df.duplicated().sum()
boolean = df['Student'].duplicated().any() # True
df.duplicated('Id') #return total duplicate df.duplicated('Id').sum()
ids = df["ID"] df[ids.isin(ids[ids.duplicated()])].sort_values("ID")