df.duplicated().sum()
boolean = df['Student'].duplicated().any() # True
# Display if the column(s) contain duplicates in the DataFrame
df.sum().duplicated()
animals = pd.Series(['lama', 'cow', 'lama', 'beetle', 'lama'])
>>> animals.duplicated()
ids = df["ID"]
df[ids.isin(ids[ids.duplicated()])].sort_values("ID")