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

Popular posts from this blog

c# - Store DBContext Log in other EF table -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -