Pythonで平均値や最大値・最小値を求めるサンプル

total = [{“date”: “2017-03-01”, “value”: 200}, {“date”: “2017-03-02”, “value”: 100}{“date”: “2017-03-03”, “value”: 400}]

最小値
print min(d[‘value’] for d in total)
最大値
print max(d[‘value’] for d in total)
平均値
print sum(d[‘value’] for d in total) / len(total)