In [2]:
df
Out[2]:
a b c
1 4 7 10
2 5 8 11
3 5 8 11
4 6 9 12
5 6 9 12

Keep duplicates

Keep duplicates.

In [3]:
df[df.duplicated()]
Out[3]:
a b c
3 5 8 11
5 6 9 12

Keep all duplicates.

In [4]:
df[df.duplicated(keep=False)]
Out[4]:
a b c
2 5 8 11
3 5 8 11
4 6 9 12
5 6 9 12

Remove Duplicates

In [5]:
df.drop_duplicates()
Out[5]:
a b c
1 4 7 10
2 5 8 11
4 6 9 12