remove the entire group when there are some certain observations in the group
89418
Delete all rows coresponding to given ID
5136
How to sum a variable by group
82140
How do I delete rows in a data frame?
19054
Deleting specific rows from a data frame
127864
How  to test  whether subgroup mean differs from overall group that includes the subgroup?
49162
Classify all groups with order $pq$, $p$ is not equal to $q$
29480
Compare means of group with a mean of a subgroup
33991
How to remove specific elements in a numpy array
12350
How do you put conditions on indices in a sum?
4982
How to combine multiple conditions to subset a data-frame using "OR"?
116765
Bug in grouping after editing code?
73947
How to remove a line of a matrix if not all elements are numeric?
46487
Purge unused data (e.g. particle system, or groups) by script
64283
Delete all but the most recent n file for each group of files that share the same prefix in a directory
13153
at least one element fixed by all the group
77500
How to remove repeated permutations?
69565
Finding contiguous ranges in grouped data