Given the following Series:
sr = pd.Series([5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8])
I want to find the values that occur 3 times. This is my solution which seems to work but looks very strange:
(sr.value_counts() == 3)[sr.value_counts() == 3].index.values
Is there any other/obvious way I am missing?