my data frame looks like this:
ID Values
0 0
2 0
3 1
5 0
5 1
8 0
9 0
10 1
11 1
12 1
I would like to drop rows where there is only one instance of ID and the sum of value is 1 my output would look like:
ID Values
0 0
2 0
5 0
5 1
8 0
9 0