turicreate.aggregate.
ARGMAX
Builtin arg maximum aggregator for groupby
Example: Get the movie with maximum rating per user.
>>> sf.groupby("user", ... {'best_movie':tc.aggregate.ARGMAX('rating','movie')})