]"nutrients""value" "units"" ""description""protein""group""composition}each food has number of identifying attributes along with two lists of nutrients and portion sizes having the data in this form is not particularly amenable for analysisso we need to do some work to wrangle the data into better form after downloading and extracting the data from the link aboveyou can load it into python with any json library of your choosing 'll use the built-in python json modulein [ ]import json in [ ]db json load(open('ch /foodsjson')in [ ]len(dbout[ ] each entry in db is dict containing all the data for single food the 'nutrientsfield is list of dictsone for each nutrientin [ ]db[ keys(out[ ][ 'portions' 'description' 'tags' 'nutrients' 'group' 'id' 'manufacturer'in [ ]db[ ]['nutrients'][ out[ ]{ 'description' 'protein' 'group' 'composition' 'units' ' ' 'value' in [ ]nutrients dataframe(db[ ]['nutrients']in [ ]nutrients[: out[ ]description protein total lipid (fat carbohydrateby difference ash energy water energy group units value composition composition composition other energy kcal composition energy kj exampleusda food database www it-ebooks info