human
Python list of dicts, get max value index
assistant
Here is some code to get dictionary with max value of key 'size' in list of dicts `ld`

max(ld, key=lambda d: d['size'])

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.