I have a list of items as you see below. The values for each year key is a list of 10 items but to make it short, I am only showing the first couple of them. How I can find the maximum of all inner "count" values? I have looked at various approaches but none has worked so far and perhaps I am missing something here. For instance, I really like some of one liners here but they didnt work for me enter link description here
Just to clarify that data is the result of a nest on csv file and it meant to be used in d3 chart and preferably no import library other than standard ones.
data = [
{'2015': values: [{key: '0', value: {count: 45}},{key: '1', value: {count: 3}}, ... ]},
{'2016': values: [{key: '0', value: {count: 67}},{key: '1', value: {count: 0}}, ... ]},
{'2017': values: [{key: '0', value: {count: 12}},{key: '1', value: {count: 8}}, ... ]}
]
To better show how data looks like, here is the screen shot in case it helps clarification of the question.