Re: Find the max number of elements in lists as value in a dictionary

2016-05-25 Thread Jon Ribbens
On 2016-05-25, Daiyue Weng wrote: > I want to find the maximal number of elements contained in a nested > dictionary, e.g. > > data = { > 'violations': > { > 'col1': {'err': [elem1, elem2, elem3]}, > 'col2': {'err': [elem1, elem2]} > } > }

Re: Find the max number of elements in lists as value in a dictionary

2016-05-25 Thread Jussi Piitulainen
Daiyue Weng writes: > I want to find the maximal number of elements contained in a nested > dictionary, e.g. > > data = { > 'violations': > { > 'col1': {'err': [elem1, elem2, elem3]}, > 'col2': {'err': [elem1, elem2]} > } > } > > so to find

Find the max number of elements in lists as value in a dictionary

2016-05-25 Thread Daiyue Weng
I want to find the maximal number of elements contained in a nested dictionary, e.g. data = { 'violations': { 'col1': {'err': [elem1, elem2, elem3]}, 'col2': {'err': [elem1, elem2]} } } so to find the maximal number of elements in the list