df
Keep duplicates.
df[df.duplicated()]
Keep all duplicates.
df[df.duplicated(keep=False)]
df.drop_duplicates()