keep all duplicates in a pandas dataframe code example Example: python - show repeted values in a column df = df[df.duplicated(subset=['val1','val2'], keep=False)]