<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def filter_ranks(results):
 """ Find just the first rank for all the results for a given tax_id. """

    for _, group in itertools.groupby(results, operator.itemgetter(0)):
        yield next(group)