How to use groupby operation in SFrame, without installing graphlab.
I would love to do some aggregation, but in all examples in the internet I have seen aggregation function comes from Graphlab.
Like:
import graphlab.aggregate as agg
user_rating_stats = sf.groupby(key_columns='user_id',
operations={
'mean_rating': agg.MEAN('rating'),
'std_rating': agg.STD('rating')
})
How can I use, say, numpy.mean
and not agg.MEAN
in the above example?