I try to query the average of 'clicks' from MongoDB database using PyMongo.
query_result = list(my_collection.aggregate([{'$group' : {'_id' : None, 'avg_clicks': {'$avg' : "$clicks"}}}]))
The result of the query is:
ok
result
Do you know what can be the problem?