mercredi 1 avril 2015

average list of dictionaries in python


Vote count:

0




I have a list of dictionary like this



data = [{'Name': 'john', 'Height': 176, 'Weight':62, 'IQ':120,..},...]


the .. signifies various other integer/float attributes and all elements of the list has same format..


I want to get the average Height, Weight and all other numerical attributes in the cleanest/easiest way.


I could not come up with a better way than normal for looping which was too messy... and i don't want to use any external packages



asked 48 secs ago







average list of dictionaries in python

Aucun commentaire:

Enregistrer un commentaire