remove_partial_data function

Remove groups that have too few data points