python - Is it possible to get the Standard deviation of a field in pymongo? -
i have query:
cursor = collection.aggregate( [ {"$match": {"name":{"$in":namelist}}}, { "$group": { "_id":"$name", "average": {"$avg":"$price"}, "max": {"$max":"$price"}, "min": {"$min":"$price"}, "count": {"$sum": 1}, } } ] )
is possible standard deviation in similar fashion?
Comments
Post a Comment