turicreate.aggregate.ARGMAX

turicreate.aggregate.ARGMAX(agg_column, out_column)

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')})