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

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

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

Nuget pack csproj using nuspec -