Function for extracting data from list

List contain dictionaries (as items in list) and these dictionaries have keys. So you need to iterate over list items (dictionaries) and get value of specific key:

for record in data:                # iterate over dictionaries in list
    print(record['my_magic_key'])  # do something with value on specific key
1 Like