{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Getting started\n",
    "\n",
    "Import Brightway2 functionality"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "from brightway2 import *"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Create new project"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "projects.current = \"underspecification\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Install base data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Creating default biosphere\n",
      "\n",
      "Applying strategy: drop_unspecified_subcategories"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Writing activities to SQLite3 database:\n",
      "0%                          100%\n",
      "[##############################] | ETA[sec]: 0.000 \n",
      "Total time elapsed: 0.326 sec\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Title: Writing activities to SQLite3 database:\n",
      "  Started: 08/25/2015 13:38:21\n",
      "  Finished: 08/25/2015 13:38:22\n",
      "  Total time elapsed: 0.326 sec\n",
      "  CPU %: 96.900000\n",
      "  Memory %: 0.263476\n",
      "Created database: biosphere3\n",
      "Creating default LCIA methods\n",
      "\n",
      "Applying strategy: set_biosphere_type\n",
      "Applying strategy: drop_unspecified_subcategories\n",
      "Applying strategy: link_iterable_by_fields\n",
      "Wrote 692 LCIA methods with 170915 characterization factors\n",
      "Creating core data migrations\n",
      "\n"
     ]
    }
   ],
   "source": [
    "bw2setup()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Importing ecoinvent 3.1\n",
    "\n",
    "Import ecoinvent 3.1 cutoff, but don't do any data manipulation yet"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Extracting ecospold2 files:\n",
      "0%                          100%\n",
      "[##############################] | ETA[sec]: 0.000 | Item ID: fff527b1-0fe4-4\n",
      "Total time elapsed: 71.115 sec\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Title: Extracting ecospold2 files:\n",
      "  Started: 08/25/2015 13:39:06\n",
      "  Finished: 08/25/2015 13:40:17\n",
      "  Total time elapsed: 71.115 sec\n",
      "  CPU %: 87.600000\n",
      "  Memory %: 2.952015\n",
      "Extracted 11301 datasets in 72.01 seconds\n"
     ]
    }
   ],
   "source": [
    "ei31cutoff = SingleOutputEcospold2Importer(\n",
    "    \"/Users/cmutel/Documents/LCA Documents/Ecoinvent/3.1/cutoff/datasets\",\n",
    "    \"ecoinvent 3.1 cutoff\"\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['0111:Growing of cereals (except rice), leguminous crops and oil seeds',\n",
       " '0112:Growing of rice',\n",
       " '0113:Growing of vegetables and melons, roots and tubers',\n",
       " '0114:Growing of sugar cane',\n",
       " '0116:Growing of fibre crops',\n",
       " '0119:Growing of other non-perennial crops',\n",
       " '0121:Growing of grapes',\n",
       " '0122:Growing of tropical and subtropical fruits',\n",
       " '0123:Growing of citrus fruits',\n",
       " '0124:Growing of pome fruits and stone fruits',\n",
       " '0125:Growing of other tree and bush fruits and nuts',\n",
       " '0126:Growing of oleaginous fruits',\n",
       " '0129:Growing of other perennial crops',\n",
       " '012:Growing of perennial crops',\n",
       " '0130:Plant propagation',\n",
       " '0141:Raising of cattle and buffaloes',\n",
       " '0144:Raising of sheep and goats',\n",
       " '0145:Raising of swine/pigs',\n",
       " '014:Animal production',\n",
       " '0161:Support activities for crop production',\n",
       " '0162:Support activities for animal production',\n",
       " '0163:Post-harvest crop activities',\n",
       " '0164:Seed processing for propagation',\n",
       " '01:Crop and animal production, hunting and related service activities',\n",
       " '0210:Silviculture and other forestry activities',\n",
       " '0220:Logging',\n",
       " '022:Logging',\n",
       " '0230:Gathering of non-wood forest products',\n",
       " '0510:Mining of hard coal',\n",
       " '0520:Mining of lignite',\n",
       " '0610:Extraction of crude petroleum',\n",
       " '0620:Extraction of natural gas',\n",
       " '0710:Mining of iron ores',\n",
       " '0721:Mining of uranium and thorium ores',\n",
       " '0729:Mining of other non-ferrous metal ores',\n",
       " '0810:Quarrying of stone, sand and clay',\n",
       " '0891:Mining of chemical and fertilizer minerals',\n",
       " '0892:Extraction of peat',\n",
       " '0893:Extraction of salt',\n",
       " '0899:Other mining and quarrying n.e.c.',\n",
       " '0910:Support activities for petroleum and natural gas extraction',\n",
       " '0990:Support activities for other mining and quarrying',\n",
       " '1010:Processing and preserving of meat',\n",
       " '1030:Processing and preserving of fruit and vegetables',\n",
       " '1040:Manufacture of vegetable and animal oils and fats',\n",
       " '1050:Manufacture of dairy products',\n",
       " '1062:Manufacture of starches and starch products',\n",
       " '1072:Manufacture of sugar',\n",
       " '108:Manufacture of prepared animal feeds',\n",
       " '1311:Preparation and spinning of textile fibres',\n",
       " '1312:Weaving of textiles',\n",
       " '1391:Manufacture of knitted and crocheted fabrics',\n",
       " '1399:Manufacture of other textiles n.e.c.',\n",
       " '1610:Sawmilling and planing of wood',\n",
       " '1621:Manufacture of veneer sheets and wood-based panels',\n",
       " \"1622:Manufacture of builders' carpentry and joinery\",\n",
       " '1623:Manufacture of wooden containers',\n",
       " '1701:Manufacture of pulp, paper and paperboard',\n",
       " '1702:Manufacture of corrugated paper and paperboard and of containers of paper a',\n",
       " '170:Manufacture of paper and paper products',\n",
       " '1811:Printing',\n",
       " '1812:Service activities related to printing',\n",
       " '1910:Manufacture of coke oven products',\n",
       " '1920:Manufacture of refined petroleum products',\n",
       " '19:Manufacture of coke and refined petroleum products',\n",
       " '19a: Liquid and gaseous fuels from biomass',\n",
       " '2011:Manufacture of basic chemicals',\n",
       " '2011a: Manufacture of nuclear fuels',\n",
       " '2012:Manufacture of fertilizers and nitrogen compounds',\n",
       " '2013:Manufacture of plastics and synthetic rubber in primary forms',\n",
       " '2021:Manufacture of pesticides and other agrochemical products',\n",
       " '2022:Manufacture of paints, varnishes and similar coatings, printing ink and mas',\n",
       " '2023:Manufacture of soap and detergents, cleaning and polishing preparations, pe',\n",
       " '2029:Manufacture of other chemical products n.e.c.',\n",
       " '2030:Manufacture of man-made fibres',\n",
       " '20:Manufacture of chemicals and chemical products',\n",
       " '2219:Manufacture of other rubber products',\n",
       " '2220:Manufacture of plastics products',\n",
       " '2310:Manufacture of glass and glass products',\n",
       " '2391:Manufacture of refractory products',\n",
       " '2392:Manufacture of clay building materials',\n",
       " '2394:Manufacture of cement, lime and plaster',\n",
       " '2395:Manufacture of articles of concrete, cement and plaster',\n",
       " '2396:Cutting, shaping and finishing of stone',\n",
       " '2399:Manufacture of other non-metallic mineral products n.e.c.',\n",
       " '239:Manufacture of non-metallic mineral products n.e.c.',\n",
       " '2410:Manufacture of basic iron and steel',\n",
       " '2420:Manufacture of basic precious and other non-ferrous metals',\n",
       " '2420a: Smelting and refining of uranium',\n",
       " '2431:Casting of iron and steel',\n",
       " '2432:Casting of non-ferrous metals',\n",
       " '2511:Manufacture of structural metal products',\n",
       " '2512:Manufacture of tanks, reservoirs and containers of metal',\n",
       " '2591:Forging, pressing, stamping and roll-forming of metal; powder metallurgy',\n",
       " '2592:Treatment and coating of metals; machining',\n",
       " '259:Manufacture of other fabricated metal products; metalworking service activit',\n",
       " '25:Manufacture of fabricated metal products, except machinery and equipment',\n",
       " '2610:Manufacture of electronic components and boards',\n",
       " '2620:Manufacture of computers and peripheral equipment',\n",
       " '2630:Manufacture of communication equipment',\n",
       " '2651:Manufacture of measuring, testing, navigating and control equipment',\n",
       " '2710:Manufacture of electric motors, generators, transformers and electricity di',\n",
       " '2710a: Manufacture of electric motors, generators, for liquid fuels',\n",
       " '2720:Manufacture of batteries and accumulators',\n",
       " '2732:Manufacture of other electronic and electric wires and cables',\n",
       " '2790:Manufacture of other electrical equipment',\n",
       " '27:Manufacture of electrical equipment',\n",
       " '2811:Manufacture of engines and turbines, except aircraft, vehicle and cycle eng',\n",
       " '2811a: Manufacture of engines and turbines for liquid fuels, except aircraft, vehicle and cycle engines',\n",
       " '2812:Manufacture of fluid power equipment',\n",
       " '2813:Manufacture of other pumps, compressors, taps and valves',\n",
       " '2815:Manufacture of ovens, furnaces and furnace burners',\n",
       " '2815a: Manufacture of furnaces and boilers for liquid fuels',\n",
       " '2815b: Manufacture of permanent mount non-electric household heating equipment',\n",
       " '2816:Manufacture of lifting and handling equipment',\n",
       " '2817:Manufacture of office machinery and equipment (except computers and periphe',\n",
       " '2818:Manufacture of power-driven hand tools',\n",
       " '2819:Manufacture of other general-purpose machinery',\n",
       " '2821:Manufacture of agricultural and forestry machinery',\n",
       " '2822:Manufacture of metal-forming machinery and machine tools',\n",
       " '2823:Manufacture of machinery for metallurgy',\n",
       " '2824:Manufacture of machinery for mining, quarrying and construction',\n",
       " '2829:Manufacture of other special-purpose machinery',\n",
       " '2910:Manufacture of motor vehicles',\n",
       " '2930:Manufacture of parts and accessories for motor vehicles',\n",
       " '3011:Building of ships and floating structures',\n",
       " '3011a: Construction of drilling platforms',\n",
       " '3020:Manufacture of railway locomotives and rolling stock',\n",
       " '3030:Manufacture of air and spacecraft and related machinery',\n",
       " '3091:Manufacture of motorcycles',\n",
       " '3092:Manufacture of bicycles and invalid carriages',\n",
       " '3314:Repair of electrical equipment',\n",
       " '3315:Repair of transport equipment, except motor vehicles',\n",
       " '3510:Electric power generation, transmission and distribution',\n",
       " '3510a: Electric power generation based on liquid fuels',\n",
       " '3510b: Electric power generation, photovoltaic',\n",
       " '3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       " '3530:Steam and air conditioning supply',\n",
       " '3530a: Steam and air conditioning supply based on liquid fuels ',\n",
       " '3530b: Solar collectors',\n",
       " '35:Electricity, gas, steam and air conditioning supply',\n",
       " '3600:Water collection, treatment and supply',\n",
       " '3700:Sewerage',\n",
       " '3811:Collection of non-hazardous waste',\n",
       " '3821:Treatment and disposal of non-hazardous waste',\n",
       " '3822:Treatment and disposal of hazardous waste',\n",
       " '382:Waste treatment and disposal',\n",
       " '3830:Materials recovery',\n",
       " '3900:Remediation activities and other waste management services',\n",
       " '4100:Construction of buildings',\n",
       " '4100a: Construction of factory buildings for the metal industry',\n",
       " '4210:Construction of roads and railways',\n",
       " '4220:Construction of utility projects',\n",
       " '4220a: Construction of utility projects for electricity production, except for liquid fuels',\n",
       " '4220b: Construction of utility projects for electricity production, for liquid fuels',\n",
       " '4290:Construction of other civil engineering projects',\n",
       " '4290a: Construction of infrastructure for petroleum refining and distribution',\n",
       " '4312:Site preparation',\n",
       " '4321:Electrical installation',\n",
       " '4322:Plumbing, heat and air-conditioning installation',\n",
       " '4322a: Installation of solar collector systems',\n",
       " '4390:Other specialized construction activities',\n",
       " '4520:Maintenance and repair of motor vehicles',\n",
       " '4540:Sale, maintenance and repair of motorcycles and related parts and accessori',\n",
       " '4911:Passenger rail transport, interurban',\n",
       " '4912:Freight rail transport',\n",
       " '4921:Urban and suburban passenger land transport',\n",
       " '4922:Other passenger land transport',\n",
       " '4923:Freight transport by road',\n",
       " '4930:Transport via pipeline',\n",
       " '5012:Sea and coastal freight water transport',\n",
       " '5022:Inland freight water transport',\n",
       " '5110:Passenger air transport',\n",
       " '5120:Freight air transport',\n",
       " '6110:Wired telecommunications activities',\n",
       " '68:Real estate activities',\n",
       " '7110:Architectural and engineering activities and related technical consultancy',\n",
       " '8219:Photocopying, document preparation and other specialized office support act',\n",
       " '8292:Packaging activities',\n",
       " '9529:Repair of other personal and household goods']"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "isic_codes = {dict(ds['classifications']).get('ISIC rev.4 ecoinvent') for ds in ei31cutoff.data}\n",
    "isic_codes.discard(None)\n",
    "sorted(isic_codes)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "group_by_region = {}\n",
    "\n",
    "for ds in ei31cutoff.data:\n",
    "    code, region = dict(ds['classifications']).get('ISIC rev.4 ecoinvent'), ds['location']\n",
    "    if code:\n",
    "        group_by_region[(code, region)] = group_by_region.get((code, region), 0) + 1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "collapsed": false,
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[(('0111:Growing of cereals (except rice), leguminous crops and oil seeds',\n",
       "   'BR'),\n",
       "  2),\n",
       " (('0111:Growing of cereals (except rice), leguminous crops and oil seeds',\n",
       "   'CH'),\n",
       "  44),\n",
       " (('0111:Growing of cereals (except rice), leguminous crops and oil seeds',\n",
       "   'CN'),\n",
       "  2),\n",
       " (('0111:Growing of cereals (except rice), leguminous crops and oil seeds',\n",
       "   'DE'),\n",
       "  4),\n",
       " (('0111:Growing of cereals (except rice), leguminous crops and oil seeds',\n",
       "   'ES'),\n",
       "  4),\n",
       " (('0111:Growing of cereals (except rice), leguminous crops and oil seeds',\n",
       "   'FR'),\n",
       "  4),\n",
       " (('0111:Growing of cereals (except rice), leguminous crops and oil seeds',\n",
       "   'GLO'),\n",
       "  44),\n",
       " (('0111:Growing of cereals (except rice), leguminous crops and oil seeds',\n",
       "   'RER'),\n",
       "  2),\n",
       " (('0111:Growing of cereals (except rice), leguminous crops and oil seeds',\n",
       "   'RoW'),\n",
       "  37),\n",
       " (('0111:Growing of cereals (except rice), leguminous crops and oil seeds',\n",
       "   'US'),\n",
       "  4),\n",
       " (('0113:Growing of vegetables and melons, roots and tubers', 'CH'), 4),\n",
       " (('0113:Growing of vegetables and melons, roots and tubers', 'GLO'), 50),\n",
       " (('0113:Growing of vegetables and melons, roots and tubers', 'RoW'), 3),\n",
       " (('0114:Growing of sugar cane', 'BR'), 3),\n",
       " (('0114:Growing of sugar cane', 'RoW'), 3),\n",
       " (('0116:Growing of fibre crops', 'CN'), 2),\n",
       " (('0116:Growing of fibre crops', 'GLO'), 4),\n",
       " (('0116:Growing of fibre crops', 'IN'), 6),\n",
       " (('0116:Growing of fibre crops', 'RoW'), 8),\n",
       " (('0116:Growing of fibre crops', 'US'), 2),\n",
       " (('0119:Growing of other non-perennial crops', 'CH'), 16),\n",
       " (('0119:Growing of other non-perennial crops', 'GLO'), 12),\n",
       " (('0119:Growing of other non-perennial crops', 'RoW'), 8),\n",
       " (('0121:Growing of grapes', 'GLO'), 2),\n",
       " (('0122:Growing of tropical and subtropical fruits', 'GLO'), 8),\n",
       " (('0123:Growing of citrus fruits', 'GLO'), 2),\n",
       " (('0124:Growing of pome fruits and stone fruits', 'GLO'), 4),\n",
       " (('0125:Growing of other tree and bush fruits and nuts', 'GLO'), 4),\n",
       " (('0126:Growing of oleaginous fruits', 'GLO'), 2),\n",
       " (('0126:Growing of oleaginous fruits', 'MY'), 2),\n",
       " (('0126:Growing of oleaginous fruits', 'RoW'), 2),\n",
       " (('0129:Growing of other perennial crops', 'DE'), 2),\n",
       " (('0129:Growing of other perennial crops', 'GLO'), 3),\n",
       " (('0129:Growing of other perennial crops', 'RoW'), 2),\n",
       " (('012:Growing of perennial crops', 'GLO'), 4),\n",
       " (('0130:Plant propagation', 'DE'), 3),\n",
       " (('0130:Plant propagation', 'GLO'), 3),\n",
       " (('0130:Plant propagation', 'RER'), 2),\n",
       " (('0130:Plant propagation', 'RoW'), 4),\n",
       " (('0141:Raising of cattle and buffaloes', 'CA-QC'), 4),\n",
       " (('0141:Raising of cattle and buffaloes', 'CH'), 2),\n",
       " (('0141:Raising of cattle and buffaloes', 'GLO'), 6),\n",
       " (('0141:Raising of cattle and buffaloes', 'RoW'), 4),\n",
       " (('0144:Raising of sheep and goats', 'GLO'), 3),\n",
       " (('0144:Raising of sheep and goats', 'RoW'), 4),\n",
       " (('0144:Raising of sheep and goats', 'US'), 4),\n",
       " (('0145:Raising of swine/pigs', 'CA-QC'), 2),\n",
       " (('0145:Raising of swine/pigs', 'CH'), 2),\n",
       " (('0145:Raising of swine/pigs', 'GLO'), 2),\n",
       " (('0145:Raising of swine/pigs', 'RoW'), 2),\n",
       " (('014:Animal production', 'GLO'), 2),\n",
       " (('0161:Support activities for crop production', 'BR'), 2),\n",
       " (('0161:Support activities for crop production', 'CA-QC'), 17),\n",
       " (('0161:Support activities for crop production', 'CH'), 53),\n",
       " (('0161:Support activities for crop production', 'CN'), 2),\n",
       " (('0161:Support activities for crop production', 'DE'), 2),\n",
       " (('0161:Support activities for crop production', 'ES'), 2),\n",
       " (('0161:Support activities for crop production', 'FR'), 2),\n",
       " (('0161:Support activities for crop production', 'GLO'), 73),\n",
       " (('0161:Support activities for crop production', 'IN'), 2),\n",
       " (('0161:Support activities for crop production', 'MY'), 2),\n",
       " (('0161:Support activities for crop production', 'PH'), 2),\n",
       " (('0161:Support activities for crop production', 'RoW'), 53),\n",
       " (('0161:Support activities for crop production', 'US'), 2),\n",
       " (('0163:Post-harvest crop activities', 'CA-QC'), 8),\n",
       " (('0163:Post-harvest crop activities', 'CH'), 10),\n",
       " (('0163:Post-harvest crop activities', 'GLO'), 11),\n",
       " (('0163:Post-harvest crop activities', 'RoW'), 11),\n",
       " (('0164:Seed processing for propagation', 'CH'), 22),\n",
       " (('0164:Seed processing for propagation', 'GLO'), 40),\n",
       " (('0164:Seed processing for propagation', 'RoW'), 18),\n",
       " (('0164:Seed processing for propagation', 'US'), 2),\n",
       " (('01:Crop and animal production, hunting and related service activities',\n",
       "   'BR'),\n",
       "  2),\n",
       " (('01:Crop and animal production, hunting and related service activities',\n",
       "   'CO'),\n",
       "  3),\n",
       " (('01:Crop and animal production, hunting and related service activities',\n",
       "   'GLO'),\n",
       "  2),\n",
       " (('01:Crop and animal production, hunting and related service activities',\n",
       "   'RoW'),\n",
       "  3),\n",
       " (('0220:Logging', 'CH'), 8),\n",
       " (('0220:Logging', 'DE'), 16),\n",
       " (('0220:Logging', 'GLO'), 17),\n",
       " (('0220:Logging', 'RER'), 18),\n",
       " (('0220:Logging', 'RoW'), 43),\n",
       " (('0220:Logging', 'SE'), 15),\n",
       " (('022:Logging', 'GLO'), 4),\n",
       " (('0230:Gathering of non-wood forest products', 'GLO'), 2),\n",
       " (('0230:Gathering of non-wood forest products', 'RER'), 3),\n",
       " (('0230:Gathering of non-wood forest products', 'RoW'), 3),\n",
       " (('0510:Mining of hard coal', 'AU'), 2),\n",
       " (('0510:Mining of hard coal', 'CN'), 3),\n",
       " (('0510:Mining of hard coal', 'GLO'), 3),\n",
       " (('0510:Mining of hard coal', 'ID'), 2),\n",
       " (('0510:Mining of hard coal', 'PL'), 2),\n",
       " (('0510:Mining of hard coal', 'RLA'), 2),\n",
       " (('0510:Mining of hard coal', 'RNA'), 2),\n",
       " (('0510:Mining of hard coal', 'RU'), 2),\n",
       " (('0510:Mining of hard coal', 'RoW'), 3),\n",
       " (('0510:Mining of hard coal', 'WEU'), 2),\n",
       " (('0510:Mining of hard coal', 'ZA'), 2),\n",
       " (('0520:Mining of lignite', 'RER'), 3),\n",
       " (('0520:Mining of lignite', 'RoW'), 3),\n",
       " (('0610:Extraction of crude petroleum', 'CA-AB'), 2),\n",
       " (('0610:Extraction of crude petroleum', 'GB'), 2),\n",
       " (('0610:Extraction of crude petroleum', 'GLO'), 9),\n",
       " (('0610:Extraction of crude petroleum', 'NG'), 2),\n",
       " (('0610:Extraction of crude petroleum', 'NL'), 4),\n",
       " (('0610:Extraction of crude petroleum', 'NO'), 2),\n",
       " (('0610:Extraction of crude petroleum', 'RoW'), 6),\n",
       " (('0610:Extraction of crude petroleum', 'US'), 2),\n",
       " (('0620:Extraction of natural gas', 'CA-AB'), 6),\n",
       " (('0620:Extraction of natural gas', 'DE'), 2),\n",
       " (('0620:Extraction of natural gas', 'DZ'), 2),\n",
       " (('0620:Extraction of natural gas', 'GLO'), 12),\n",
       " (('0620:Extraction of natural gas', 'RoW'), 5),\n",
       " (('0710:Mining of iron ores', 'CA-QC'), 2),\n",
       " (('0710:Mining of iron ores', 'GLO'), 5),\n",
       " (('0721:Mining of uranium and thorium ores', 'GLO'), 4),\n",
       " (('0721:Mining of uranium and thorium ores', 'RNA'), 5),\n",
       " (('0721:Mining of uranium and thorium ores', 'RoW'), 5),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'AU'), 6),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'CA-QC'), 8),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'CL'), 2),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'CN'), 2),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'GLO'), 36),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'PE'), 2),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'PG'), 2),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'RAS'), 2),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'RER'), 10),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'RLA'), 2),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'RNA'), 2),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'RU'), 5),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'RoW'), 25),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'SE'), 5),\n",
       " (('0729:Mining of other non-ferrous metal ores', 'ZA'), 6),\n",
       " (('0810:Quarrying of stone, sand and clay', 'CA-QC'), 7),\n",
       " (('0810:Quarrying of stone, sand and clay', 'CH'), 12),\n",
       " (('0810:Quarrying of stone, sand and clay', 'DE'), 5),\n",
       " (('0810:Quarrying of stone, sand and clay', 'GLO'), 24),\n",
       " (('0810:Quarrying of stone, sand and clay', 'RER'), 5),\n",
       " (('0810:Quarrying of stone, sand and clay', 'RoW'), 25),\n",
       " (('0891:Mining of chemical and fertilizer minerals', 'GLO'), 10),\n",
       " (('0891:Mining of chemical and fertilizer minerals', 'RER'), 3),\n",
       " (('0891:Mining of chemical and fertilizer minerals', 'RoW'), 7),\n",
       " (('0891:Mining of chemical and fertilizer minerals', 'US'), 2),\n",
       " (('0892:Extraction of peat', 'GLO'), 3),\n",
       " (('0892:Extraction of peat', 'NORDEL'), 2),\n",
       " (('0892:Extraction of peat', 'RoW'), 3),\n",
       " (('0893:Extraction of salt', 'GLO'), 2),\n",
       " (('0893:Extraction of salt', 'RER'), 2),\n",
       " (('0893:Extraction of salt', 'RoW'), 2),\n",
       " (('0899:Other mining and quarrying n.e.c.', 'GLO'), 3),\n",
       " (('0910:Support activities for petroleum and natural gas extraction', 'GLO'),\n",
       "  6),\n",
       " (('0990:Support activities for other mining and quarrying', 'GLO'), 4),\n",
       " (('1010:Processing and preserving of meat', 'CH'), 2),\n",
       " (('1010:Processing and preserving of meat', 'GLO'), 2),\n",
       " (('1010:Processing and preserving of meat', 'RoW'), 2),\n",
       " (('1030:Processing and preserving of fruit and vegetables', 'CA-QC'), 5),\n",
       " (('1030:Processing and preserving of fruit and vegetables', 'GLO'), 2),\n",
       " (('1030:Processing and preserving of fruit and vegetables', 'RoW'), 5),\n",
       " (('1040:Manufacture of vegetable and animal oils and fats', 'BR'), 2),\n",
       " (('1040:Manufacture of vegetable and animal oils and fats', 'CA-QC'), 3),\n",
       " (('1040:Manufacture of vegetable and animal oils and fats', 'CH'), 3),\n",
       " (('1040:Manufacture of vegetable and animal oils and fats',\n",
       "   'Europe without Switzerland'),\n",
       "  2),\n",
       " (('1040:Manufacture of vegetable and animal oils and fats', 'GLO'), 17),\n",
       " (('1040:Manufacture of vegetable and animal oils and fats', 'MY'), 3),\n",
       " (('1040:Manufacture of vegetable and animal oils and fats', 'RER'), 2),\n",
       " (('1040:Manufacture of vegetable and animal oils and fats', 'RoW'), 16),\n",
       " (('1040:Manufacture of vegetable and animal oils and fats', 'US'), 6),\n",
       " (('1050:Manufacture of dairy products', 'CA-QC'), 5),\n",
       " (('1050:Manufacture of dairy products', 'GLO'), 20),\n",
       " (('1050:Manufacture of dairy products', 'RoW'), 5),\n",
       " (('1062:Manufacture of starches and starch products', 'DE'), 2),\n",
       " (('1062:Manufacture of starches and starch products', 'GLO'), 3),\n",
       " (('1062:Manufacture of starches and starch products', 'RoW'), 3),\n",
       " (('1072:Manufacture of sugar', 'BR'), 4),\n",
       " (('1072:Manufacture of sugar', 'CH'), 3),\n",
       " (('1072:Manufacture of sugar', 'GLO'), 3),\n",
       " (('1072:Manufacture of sugar', 'RoW'), 7),\n",
       " (('108:Manufacture of prepared animal feeds', 'GLO'), 33),\n",
       " (('1311:Preparation and spinning of textile fibres', 'GLO'), 3),\n",
       " (('1311:Preparation and spinning of textile fibres', 'IN'), 3),\n",
       " (('1311:Preparation and spinning of textile fibres', 'RoW'), 3),\n",
       " (('1312:Weaving of textiles', 'GLO'), 9),\n",
       " (('1312:Weaving of textiles', 'IN'), 3),\n",
       " (('1312:Weaving of textiles', 'RER'), 2),\n",
       " (('1312:Weaving of textiles', 'RoW'), 5),\n",
       " (('1391:Manufacture of knitted and crocheted fabrics', 'GLO'), 4),\n",
       " (('1399:Manufacture of other textiles n.e.c.', 'GLO'), 2),\n",
       " (('1399:Manufacture of other textiles n.e.c.', 'RER'), 2),\n",
       " (('1399:Manufacture of other textiles n.e.c.', 'RoW'), 2),\n",
       " (('1610:Sawmilling and planing of wood', 'BR'), 4),\n",
       " (('1610:Sawmilling and planing of wood', 'CA-QC'), 2),\n",
       " (('1610:Sawmilling and planing of wood', 'CH'), 40),\n",
       " (('1610:Sawmilling and planing of wood', 'GLO'), 63),\n",
       " (('1610:Sawmilling and planing of wood', 'RER'), 47),\n",
       " (('1610:Sawmilling and planing of wood', 'RoW'), 90),\n",
       " (('1621:Manufacture of veneer sheets and wood-based panels', 'CA-QC'), 10),\n",
       " (('1621:Manufacture of veneer sheets and wood-based panels', 'CH'), 3),\n",
       " (('1621:Manufacture of veneer sheets and wood-based panels',\n",
       "   'Europe without Switzerland'),\n",
       "  3),\n",
       " (('1621:Manufacture of veneer sheets and wood-based panels', 'GLO'), 18),\n",
       " (('1621:Manufacture of veneer sheets and wood-based panels', 'RER'), 39),\n",
       " (('1621:Manufacture of veneer sheets and wood-based panels', 'RoW'), 45),\n",
       " ((\"1622:Manufacture of builders' carpentry and joinery\", 'CA-QC'), 2),\n",
       " ((\"1622:Manufacture of builders' carpentry and joinery\", 'GLO'), 4),\n",
       " ((\"1622:Manufacture of builders' carpentry and joinery\", 'RER'), 5),\n",
       " ((\"1622:Manufacture of builders' carpentry and joinery\", 'RoW'), 5),\n",
       " (('1701:Manufacture of pulp, paper and paperboard', 'CA-QC'), 10),\n",
       " (('1701:Manufacture of pulp, paper and paperboard', 'CH'), 2),\n",
       " (('1701:Manufacture of pulp, paper and paperboard', 'GLO'), 16),\n",
       " (('1701:Manufacture of pulp, paper and paperboard', 'RER'), 27),\n",
       " (('1701:Manufacture of pulp, paper and paperboard', 'RoW'), 31),\n",
       " (('1702:Manufacture of corrugated paper and paperboard and of containers of paper a',\n",
       "   'CA-QC'),\n",
       "  11),\n",
       " (('1702:Manufacture of corrugated paper and paperboard and of containers of paper a',\n",
       "   'CH'),\n",
       "  2),\n",
       " (('1702:Manufacture of corrugated paper and paperboard and of containers of paper a',\n",
       "   'GLO'),\n",
       "  9),\n",
       " (('1702:Manufacture of corrugated paper and paperboard and of containers of paper a',\n",
       "   'RER'),\n",
       "  22),\n",
       " (('1702:Manufacture of corrugated paper and paperboard and of containers of paper a',\n",
       "   'RoW'),\n",
       "  24),\n",
       " (('1910:Manufacture of coke oven products', 'DE'), 4),\n",
       " (('1910:Manufacture of coke oven products', 'RoW'), 4),\n",
       " (('1920:Manufacture of refined petroleum products', 'CH'), 26),\n",
       " (('1920:Manufacture of refined petroleum products', 'DE'), 2),\n",
       " (('1920:Manufacture of refined petroleum products',\n",
       "   'Europe without Switzerland'),\n",
       "  20),\n",
       " (('1920:Manufacture of refined petroleum products', 'GLO'), 26),\n",
       " (('1920:Manufacture of refined petroleum products', 'RER'), 27),\n",
       " (('1920:Manufacture of refined petroleum products', 'RoW'), 50),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'BR'), 5),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'CA-QC'), 3),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'CH'), 20),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'CN'), 4),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'Europe without Switzerland'),\n",
       "  4),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'FR'), 2),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'GLO'), 9),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'MY'), 2),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'RER'), 3),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'RoW'), 36),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'SE'), 2),\n",
       " (('19a: Liquid and gaseous fuels from biomass', 'US'), 5),\n",
       " (('2011:Manufacture of basic chemicals', 'CA-QC'), 21),\n",
       " (('2011:Manufacture of basic chemicals', 'CH'), 2),\n",
       " (('2011:Manufacture of basic chemicals', 'CN'), 23),\n",
       " (('2011:Manufacture of basic chemicals', 'DE'), 4),\n",
       " (('2011:Manufacture of basic chemicals', 'GLO'), 469),\n",
       " (('2011:Manufacture of basic chemicals', 'NL'), 2),\n",
       " (('2011:Manufacture of basic chemicals', 'RER'), 319),\n",
       " (('2011:Manufacture of basic chemicals', 'RNA'), 6),\n",
       " (('2011:Manufacture of basic chemicals', 'RoW'), 341),\n",
       " (('2011:Manufacture of basic chemicals', 'US'), 10),\n",
       " (('2011:Manufacture of basic chemicals', 'WEU'), 3),\n",
       " (('2011a: Manufacture of nuclear fuels', 'CH'), 5),\n",
       " (('2011a: Manufacture of nuclear fuels', 'DE'), 7),\n",
       " (('2011a: Manufacture of nuclear fuels', 'FR'), 6),\n",
       " (('2011a: Manufacture of nuclear fuels', 'GB'), 4),\n",
       " (('2011a: Manufacture of nuclear fuels', 'GLO'), 17),\n",
       " (('2011a: Manufacture of nuclear fuels', 'NL'), 4),\n",
       " (('2011a: Manufacture of nuclear fuels', 'RU'), 4),\n",
       " (('2011a: Manufacture of nuclear fuels', 'RoW'), 19),\n",
       " (('2011a: Manufacture of nuclear fuels', 'UCTE'), 3),\n",
       " (('2011a: Manufacture of nuclear fuels', 'UCTE without Germany'), 2),\n",
       " (('2011a: Manufacture of nuclear fuels', 'US'), 4),\n",
       " (('2012:Manufacture of fertilizers and nitrogen compounds', 'GLO'), 17),\n",
       " (('2012:Manufacture of fertilizers and nitrogen compounds', 'MA'), 2),\n",
       " (('2012:Manufacture of fertilizers and nitrogen compounds', 'RER'), 24),\n",
       " (('2012:Manufacture of fertilizers and nitrogen compounds', 'RoW'), 22),\n",
       " (('2012:Manufacture of fertilizers and nitrogen compounds', 'US'), 2),\n",
       " (('2013:Manufacture of plastics and synthetic rubber in primary forms',\n",
       "   'CA-QC'),\n",
       "  5),\n",
       " (('2013:Manufacture of plastics and synthetic rubber in primary forms', 'CH'),\n",
       "  2),\n",
       " (('2013:Manufacture of plastics and synthetic rubber in primary forms',\n",
       "   'GLO'),\n",
       "  57),\n",
       " (('2013:Manufacture of plastics and synthetic rubber in primary forms',\n",
       "   'RER'),\n",
       "  51),\n",
       " (('2013:Manufacture of plastics and synthetic rubber in primary forms',\n",
       "   'RoW'),\n",
       "  56),\n",
       " (('2013:Manufacture of plastics and synthetic rubber in primary forms', 'US'),\n",
       "  3),\n",
       " (('2021:Manufacture of pesticides and other agrochemical products', 'GLO'),\n",
       "  60),\n",
       " (('2021:Manufacture of pesticides and other agrochemical products', 'RER'),\n",
       "  43),\n",
       " (('2021:Manufacture of pesticides and other agrochemical products', 'RoW'),\n",
       "  42),\n",
       " (('2022:Manufacture of paints, varnishes and similar coatings, printing ink and mas',\n",
       "   'GLO'),\n",
       "  18),\n",
       " (('2022:Manufacture of paints, varnishes and similar coatings, printing ink and mas',\n",
       "   'RER'),\n",
       "  10),\n",
       " (('2022:Manufacture of paints, varnishes and similar coatings, printing ink and mas',\n",
       "   'RoW'),\n",
       "  10),\n",
       " (('2023:Manufacture of soap and detergents, cleaning and polishing preparations, pe',\n",
       "   'GLO'),\n",
       "  16),\n",
       " (('2023:Manufacture of soap and detergents, cleaning and polishing preparations, pe',\n",
       "   'RER'),\n",
       "  25),\n",
       " (('2023:Manufacture of soap and detergents, cleaning and polishing preparations, pe',\n",
       "   'RoW'),\n",
       "  25),\n",
       " (('2029:Manufacture of other chemical products n.e.c.', 'DE'), 2),\n",
       " (('2029:Manufacture of other chemical products n.e.c.', 'GLO'), 23),\n",
       " (('2029:Manufacture of other chemical products n.e.c.', 'RER'), 8),\n",
       " (('2029:Manufacture of other chemical products n.e.c.', 'RoW'), 11),\n",
       " (('2030:Manufacture of man-made fibres', 'GLO'), 4),\n",
       " (('20:Manufacture of chemicals and chemical products', 'GLO'), 22),\n",
       " (('20:Manufacture of chemicals and chemical products', 'RoW'), 2),\n",
       " (('2220:Manufacture of plastics products', 'CA-QC'), 6),\n",
       " (('2220:Manufacture of plastics products', 'CH'), 8),\n",
       " (('2220:Manufacture of plastics products', 'GLO'), 21),\n",
       " (('2220:Manufacture of plastics products', 'RER'), 14),\n",
       " (('2220:Manufacture of plastics products', 'RoW'), 20),\n",
       " (('2310:Manufacture of glass and glass products', 'CH'), 3),\n",
       " (('2310:Manufacture of glass and glass products', 'DE'), 5),\n",
       " (('2310:Manufacture of glass and glass products', 'GLO'), 25),\n",
       " (('2310:Manufacture of glass and glass products', 'RER'), 8),\n",
       " (('2310:Manufacture of glass and glass products', 'RER w/o CH+DE'), 3),\n",
       " (('2310:Manufacture of glass and glass products', 'RoW'), 14),\n",
       " (('2391:Manufacture of refractory products', 'DE'), 3),\n",
       " (('2391:Manufacture of refractory products', 'GLO'), 4),\n",
       " (('2391:Manufacture of refractory products', 'RoW'), 4),\n",
       " (('2392:Manufacture of clay building materials', 'CA-QC'), 2),\n",
       " (('2392:Manufacture of clay building materials', 'CH'), 4),\n",
       " (('2392:Manufacture of clay building materials', 'GLO'), 8),\n",
       " (('2392:Manufacture of clay building materials', 'RER'), 2),\n",
       " (('2392:Manufacture of clay building materials', 'RoW'), 8),\n",
       " (('2394:Manufacture of cement, lime and plaster', 'CA-QC'), 7),\n",
       " (('2394:Manufacture of cement, lime and plaster', 'CH'), 48),\n",
       " (('2394:Manufacture of cement, lime and plaster',\n",
       "   'Europe without Switzerland'),\n",
       "  32),\n",
       " (('2394:Manufacture of cement, lime and plaster', 'GLO'), 24),\n",
       " (('2394:Manufacture of cement, lime and plaster', 'RoW'), 53),\n",
       " (('2394:Manufacture of cement, lime and plaster', 'US'), 16),\n",
       " (('2395:Manufacture of articles of concrete, cement and plaster', 'CA-QC'),\n",
       "  5),\n",
       " (('2395:Manufacture of articles of concrete, cement and plaster', 'CH'), 19),\n",
       " (('2395:Manufacture of articles of concrete, cement and plaster', 'DE'), 2),\n",
       " (('2395:Manufacture of articles of concrete, cement and plaster', 'GLO'), 26),\n",
       " (('2395:Manufacture of articles of concrete, cement and plaster', 'RoW'), 26),\n",
       " (('2396:Cutting, shaping and finishing of stone', 'CH'), 3),\n",
       " (('2396:Cutting, shaping and finishing of stone', 'GLO'), 3),\n",
       " (('2396:Cutting, shaping and finishing of stone', 'RoW'), 3),\n",
       " (('2399:Manufacture of other non-metallic mineral products n.e.c.', 'CA-QC'),\n",
       "  3),\n",
       " (('2399:Manufacture of other non-metallic mineral products n.e.c.', 'CH'),\n",
       "  11),\n",
       " (('2399:Manufacture of other non-metallic mineral products n.e.c.', 'DE'), 2),\n",
       " (('2399:Manufacture of other non-metallic mineral products n.e.c.', 'GLO'),\n",
       "  26),\n",
       " (('2399:Manufacture of other non-metallic mineral products n.e.c.', 'RER'),\n",
       "  8),\n",
       " (('2399:Manufacture of other non-metallic mineral products n.e.c.', 'RoW'),\n",
       "  20),\n",
       " (('239:Manufacture of non-metallic mineral products n.e.c.', 'RoW'), 2),\n",
       " (('239:Manufacture of non-metallic mineral products n.e.c.', 'US'), 2),\n",
       " (('2410:Manufacture of basic iron and steel', 'CA-QC'), 3),\n",
       " (('2410:Manufacture of basic iron and steel', 'GLO'), 31),\n",
       " (('2410:Manufacture of basic iron and steel', 'RER'), 18),\n",
       " (('2410:Manufacture of basic iron and steel', 'RoW'), 21),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals', 'CA-QC'),\n",
       "  3),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals', 'CH'),\n",
       "  2),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals', 'CN'),\n",
       "  4),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals', 'DE'),\n",
       "  2),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals', 'GLO'),\n",
       "  84),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals',\n",
       "   'IAI Area 1'),\n",
       "  2),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals',\n",
       "   'IAI Area 2, without Quebec'),\n",
       "  3),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals',\n",
       "   'IAI Area 3'),\n",
       "  3),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals',\n",
       "   'IAI Area 4&5 without China'),\n",
       "  3),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals',\n",
       "   'IAI Area 8'),\n",
       "  2),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals', 'IL'),\n",
       "  3),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals', 'RER'),\n",
       "  27),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals', 'RoW'),\n",
       "  49),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals', 'SE'),\n",
       "  8),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals',\n",
       "   'UN-EUROPE'),\n",
       "  3),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals',\n",
       "   'UN-OCEANIA'),\n",
       "  2),\n",
       " (('2420:Manufacture of basic precious and other non-ferrous metals', 'US'),\n",
       "  4),\n",
       " (('2432:Casting of non-ferrous metals', 'CH'), 2),\n",
       " (('2432:Casting of non-ferrous metals', 'GLO'), 3),\n",
       " (('2432:Casting of non-ferrous metals', 'RoW'), 3),\n",
       " (('2511:Manufacture of structural metal products', 'GLO'), 4),\n",
       " (('2511:Manufacture of structural metal products', 'RER'), 5),\n",
       " (('2511:Manufacture of structural metal products', 'RoW'), 5),\n",
       " (('2512:Manufacture of tanks, reservoirs and containers of metal', 'CH'), 7),\n",
       " (('2512:Manufacture of tanks, reservoirs and containers of metal', 'GLO'), 8),\n",
       " (('2512:Manufacture of tanks, reservoirs and containers of metal', 'RoW'), 8),\n",
       " (('2591:Forging, pressing, stamping and roll-forming of metal; powder metallurgy',\n",
       "   'GLO'),\n",
       "  39),\n",
       " (('2591:Forging, pressing, stamping and roll-forming of metal; powder metallurgy',\n",
       "   'RER'),\n",
       "  39),\n",
       " (('2591:Forging, pressing, stamping and roll-forming of metal; powder metallurgy',\n",
       "   'RoW'),\n",
       "  39),\n",
       " (('2592:Treatment and coating of metals; machining', 'CA-QC'), 23),\n",
       " (('2592:Treatment and coating of metals; machining', 'DE'), 2),\n",
       " (('2592:Treatment and coating of metals; machining', 'GLO'), 92),\n",
       " (('2592:Treatment and coating of metals; machining', 'RER'), 87),\n",
       " (('2592:Treatment and coating of metals; machining', 'RoW'), 92),\n",
       " (('259:Manufacture of other fabricated metal products; metalworking service activit',\n",
       "   'GLO'),\n",
       "  5),\n",
       " (('259:Manufacture of other fabricated metal products; metalworking service activit',\n",
       "   'RER'),\n",
       "  5),\n",
       " (('259:Manufacture of other fabricated metal products; metalworking service activit',\n",
       "   'RoW'),\n",
       "  5),\n",
       " (('25:Manufacture of fabricated metal products, except machinery and equipment',\n",
       "   'GLO'),\n",
       "  2),\n",
       " (('25:Manufacture of fabricated metal products, except machinery and equipment',\n",
       "   'RER'),\n",
       "  8),\n",
       " (('25:Manufacture of fabricated metal products, except machinery and equipment',\n",
       "   'RoW'),\n",
       "  8),\n",
       " (('2610:Manufacture of electronic components and boards', 'CH'), 16),\n",
       " (('2610:Manufacture of electronic components and boards', 'DE'), 3),\n",
       " (('2610:Manufacture of electronic components and boards', 'GLO'), 167),\n",
       " (('2610:Manufacture of electronic components and boards', 'RER'), 13),\n",
       " (('2610:Manufacture of electronic components and boards', 'RoW'), 35),\n",
       " (('2610:Manufacture of electronic components and boards', 'US'), 3),\n",
       " (('2620:Manufacture of computers and peripheral equipment', 'GLO'), 32),\n",
       " (('2630:Manufacture of communication equipment', 'CH'), 2),\n",
       " (('2630:Manufacture of communication equipment', 'GLO'), 2),\n",
       " (('2630:Manufacture of communication equipment', 'RoW'), 2),\n",
       " (('2651:Manufacture of measuring, testing, navigating and control equipment',\n",
       "   'GLO'),\n",
       "  9),\n",
       " (('2651:Manufacture of measuring, testing, navigating and control equipment',\n",
       "   'RER'),\n",
       "  3),\n",
       " (('2651:Manufacture of measuring, testing, navigating and control equipment',\n",
       "   'RoW'),\n",
       "  3),\n",
       " (('2710:Manufacture of electric motors, generators, transformers and electricity di',\n",
       "   'CH'),\n",
       "  6),\n",
       " (('2710:Manufacture of electric motors, generators, transformers and electricity di',\n",
       "   'GLO'),\n",
       "  27),\n",
       " (('2710:Manufacture of electric motors, generators, transformers and electricity di',\n",
       "   'RER'),\n",
       "  10),\n",
       " (('2710:Manufacture of electric motors, generators, transformers and electricity di',\n",
       "   'RoW'),\n",
       "  17),\n",
       " (('2720:Manufacture of batteries and accumulators', 'CN'), 3),\n",
       " (('2720:Manufacture of batteries and accumulators', 'GLO'), 14),\n",
       " (('2720:Manufacture of batteries and accumulators', 'RoW'), 3),\n",
       " (('2732:Manufacture of other electronic and electric wires and cables',\n",
       "   'GLO'),\n",
       "  4),\n",
       " (('2790:Manufacture of other electrical equipment', 'CA-QC'), 2),\n",
       " (('2790:Manufacture of other electrical equipment', 'CH'), 5),\n",
       " (('2790:Manufacture of other electrical equipment', 'GLO'), 13),\n",
       " (('2790:Manufacture of other electrical equipment', 'RER'), 5),\n",
       " (('2790:Manufacture of other electrical equipment', 'RoW'), 12),\n",
       " (('27:Manufacture of electrical equipment', 'GLO'), 6),\n",
       " (('2811:Manufacture of engines and turbines, except aircraft, vehicle and cycle eng',\n",
       "   'CH'),\n",
       "  3),\n",
       " (('2811:Manufacture of engines and turbines, except aircraft, vehicle and cycle eng',\n",
       "   'GLO'),\n",
       "  12),\n",
       " (('2811:Manufacture of engines and turbines, except aircraft, vehicle and cycle eng',\n",
       "   'RER'),\n",
       "  9),\n",
       " (('2811:Manufacture of engines and turbines, except aircraft, vehicle and cycle eng',\n",
       "   'RoW'),\n",
       "  12),\n",
       " (('2813:Manufacture of other pumps, compressors, taps and valves', 'GLO'), 3),\n",
       " (('2813:Manufacture of other pumps, compressors, taps and valves', 'RER'), 3),\n",
       " (('2813:Manufacture of other pumps, compressors, taps and valves', 'RoW'), 3),\n",
       " (('2815:Manufacture of ovens, furnaces and furnace burners', 'CH'), 30),\n",
       " (('2815:Manufacture of ovens, furnaces and furnace burners', 'GLO'), 37),\n",
       " (('2815:Manufacture of ovens, furnaces and furnace burners', 'RER'), 7),\n",
       " (('2815:Manufacture of ovens, furnaces and furnace burners', 'RoW'), 37),\n",
       " (('2815a: Manufacture of furnaces and boilers for liquid fuels', 'CH'), 3),\n",
       " (('2815a: Manufacture of furnaces and boilers for liquid fuels', 'GLO'), 3),\n",
       " (('2815a: Manufacture of furnaces and boilers for liquid fuels', 'RoW'), 3),\n",
       " (('2815b: Manufacture of permanent mount non-electric household heating equipment',\n",
       "   'GLO'),\n",
       "  2),\n",
       " (('2815b: Manufacture of permanent mount non-electric household heating equipment',\n",
       "   'RoW'),\n",
       "  2),\n",
       " (('2817:Manufacture of office machinery and equipment (except computers and periphe',\n",
       "   'GLO'),\n",
       "  6),\n",
       " (('2817:Manufacture of office machinery and equipment (except computers and periphe',\n",
       "   'RER'),\n",
       "  2),\n",
       " (('2817:Manufacture of office machinery and equipment (except computers and periphe',\n",
       "   'RoW'),\n",
       "  2),\n",
       " (('2818:Manufacture of power-driven hand tools', 'GLO'), 2),\n",
       " (('2818:Manufacture of power-driven hand tools', 'RER'), 2),\n",
       " (('2818:Manufacture of power-driven hand tools', 'RoW'), 2),\n",
       " (('2819:Manufacture of other general-purpose machinery', 'CH'), 16),\n",
       " (('2819:Manufacture of other general-purpose machinery', 'GLO'), 41),\n",
       " (('2819:Manufacture of other general-purpose machinery', 'RER'), 25),\n",
       " (('2819:Manufacture of other general-purpose machinery', 'RoW'), 41),\n",
       " (('2821:Manufacture of agricultural and forestry machinery', 'CH'), 6),\n",
       " (('2821:Manufacture of agricultural and forestry machinery', 'GLO'), 22),\n",
       " (('2821:Manufacture of agricultural and forestry machinery', 'RoW'), 7),\n",
       " (('2822:Manufacture of metal-forming machinery and machine tools', 'GLO'), 5),\n",
       " (('2822:Manufacture of metal-forming machinery and machine tools', 'RER'), 5),\n",
       " (('2822:Manufacture of metal-forming machinery and machine tools', 'RoW'), 4),\n",
       " (('2823:Manufacture of machinery for metallurgy', 'GLO'), 3),\n",
       " (('2824:Manufacture of machinery for mining, quarrying and construction',\n",
       "   'GLO'),\n",
       "  4),\n",
       " (('2824:Manufacture of machinery for mining, quarrying and construction',\n",
       "   'RER'),\n",
       "  4),\n",
       " (('2824:Manufacture of machinery for mining, quarrying and construction',\n",
       "   'RoW'),\n",
       "  4),\n",
       " (('2829:Manufacture of other special-purpose machinery', 'GLO'), 3),\n",
       " (('2910:Manufacture of motor vehicles', 'GLO'), 21),\n",
       " (('2910:Manufacture of motor vehicles', 'RER'), 6),\n",
       " (('2910:Manufacture of motor vehicles', 'RoW'), 7),\n",
       " (('2930:Manufacture of parts and accessories for motor vehicles', 'GLO'), 4),\n",
       " (('2930:Manufacture of parts and accessories for motor vehicles', 'RER'), 3),\n",
       " (('2930:Manufacture of parts and accessories for motor vehicles', 'RoW'), 4),\n",
       " (('3011:Building of ships and floating structures', 'GLO'), 6),\n",
       " (('3011:Building of ships and floating structures', 'RER'), 2),\n",
       " (('3011:Building of ships and floating structures', 'RoW'), 2),\n",
       " (('3011a: Construction of drilling platforms', 'GLO'), 4),\n",
       " (('3020:Manufacture of railway locomotives and rolling stock', 'CH'), 2),\n",
       " (('3020:Manufacture of railway locomotives and rolling stock', 'GLO'), 6),\n",
       " (('3020:Manufacture of railway locomotives and rolling stock', 'RER'), 3),\n",
       " (('3020:Manufacture of railway locomotives and rolling stock', 'RoW'), 6),\n",
       " (('3030:Manufacture of air and spacecraft and related machinery', 'GLO'), 4),\n",
       " (('3030:Manufacture of air and spacecraft and related machinery', 'RER'), 2),\n",
       " (('3030:Manufacture of air and spacecraft and related machinery', 'RoW'), 2),\n",
       " (('3091:Manufacture of motorcycles', 'GLO'), 6),\n",
       " (('3091:Manufacture of motorcycles', 'RER'), 2),\n",
       " (('3091:Manufacture of motorcycles', 'RoW'), 2),\n",
       " (('3314:Repair of electrical equipment', 'CH'), 6),\n",
       " (('3314:Repair of electrical equipment', 'GLO'), 7),\n",
       " (('3314:Repair of electrical equipment', 'RoW'), 7),\n",
       " (('3315:Repair of transport equipment, except motor vehicles', 'CH'), 3),\n",
       " (('3315:Repair of transport equipment, except motor vehicles', 'GLO'), 8),\n",
       " (('3315:Repair of transport equipment, except motor vehicles', 'RER'), 4),\n",
       " (('3315:Repair of transport equipment, except motor vehicles', 'RoW'), 8),\n",
       " (('3510:Electric power generation, transmission and distribution', 'ASCC'),\n",
       "  13),\n",
       " (('3510:Electric power generation, transmission and distribution', 'AT'), 23),\n",
       " (('3510:Electric power generation, transmission and distribution', 'AU'), 19),\n",
       " (('3510:Electric power generation, transmission and distribution', 'BA'), 15),\n",
       " (('3510:Electric power generation, transmission and distribution', 'BE'), 21),\n",
       " (('3510:Electric power generation, transmission and distribution', 'BG'), 16),\n",
       " (('3510:Electric power generation, transmission and distribution', 'BR'), 19),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-AB'),\n",
       "  23),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-BC'),\n",
       "  14),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-MB'),\n",
       "  19),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-NB'),\n",
       "  19),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-NF'),\n",
       "  7),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-NS'),\n",
       "  20),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-NT'),\n",
       "  12),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-NU'),\n",
       "  5),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-ON'),\n",
       "  23),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-PE'),\n",
       "  11),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-QC'),\n",
       "  23),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-SK'),\n",
       "  19),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CA-YK'),\n",
       "  11),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CH'), 41),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CL'), 13),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CN'), 25),\n",
       " (('3510:Electric power generation, transmission and distribution', 'CZ'), 19),\n",
       " (('3510:Electric power generation, transmission and distribution', 'DE'), 31),\n",
       " (('3510:Electric power generation, transmission and distribution', 'DK'), 15),\n",
       " (('3510:Electric power generation, transmission and distribution', 'DZ'), 2),\n",
       " (('3510:Electric power generation, transmission and distribution', 'ES'), 21),\n",
       " (('3510:Electric power generation, transmission and distribution', 'FI'), 23),\n",
       " (('3510:Electric power generation, transmission and distribution', 'FR'), 24),\n",
       " (('3510:Electric power generation, transmission and distribution', 'FRCC'),\n",
       "  12),\n",
       " (('3510:Electric power generation, transmission and distribution', 'GB'), 18),\n",
       " (('3510:Electric power generation, transmission and distribution', 'GLO'),\n",
       "  12),\n",
       " (('3510:Electric power generation, transmission and distribution', 'GR'), 15),\n",
       " (('3510:Electric power generation, transmission and distribution', 'HICC'),\n",
       "  13),\n",
       " (('3510:Electric power generation, transmission and distribution', 'HR'), 21),\n",
       " (('3510:Electric power generation, transmission and distribution', 'HU'), 19),\n",
       " (('3510:Electric power generation, transmission and distribution',\n",
       "   'IAI Area 1'),\n",
       "  5),\n",
       " (('3510:Electric power generation, transmission and distribution',\n",
       "   'IAI Area 2, without Quebec'),\n",
       "  8),\n",
       " (('3510:Electric power generation, transmission and distribution',\n",
       "   'IAI Area 3'),\n",
       "  5),\n",
       " (('3510:Electric power generation, transmission and distribution',\n",
       "   'IAI Area 4&5 without China'),\n",
       "  5),\n",
       " (('3510:Electric power generation, transmission and distribution',\n",
       "   'IAI Area 8'),\n",
       "  5),\n",
       " (('3510:Electric power generation, transmission and distribution', 'ID'), 10),\n",
       " (('3510:Electric power generation, transmission and distribution', 'IE'), 14),\n",
       " (('3510:Electric power generation, transmission and distribution', 'IN'), 19),\n",
       " (('3510:Electric power generation, transmission and distribution', 'IR'), 13),\n",
       " (('3510:Electric power generation, transmission and distribution', 'IT'), 23),\n",
       " (('3510:Electric power generation, transmission and distribution', 'JP'), 21),\n",
       " (('3510:Electric power generation, transmission and distribution', 'KR'), 23),\n",
       " (('3510:Electric power generation, transmission and distribution', 'LU'), 13),\n",
       " (('3510:Electric power generation, transmission and distribution', 'MK'), 10),\n",
       " (('3510:Electric power generation, transmission and distribution',\n",
       "   'MRO, US only'),\n",
       "  17),\n",
       " (('3510:Electric power generation, transmission and distribution', 'MX'), 17),\n",
       " (('3510:Electric power generation, transmission and distribution', 'MY'), 9),\n",
       " (('3510:Electric power generation, transmission and distribution', 'NL'), 22),\n",
       " (('3510:Electric power generation, transmission and distribution', 'NO'), 23),\n",
       " (('3510:Electric power generation, transmission and distribution',\n",
       "   'NPCC, US only'),\n",
       "  19),\n",
       " (('3510:Electric power generation, transmission and distribution', 'PE'), 12),\n",
       " (('3510:Electric power generation, transmission and distribution', 'PL'), 20),\n",
       " (('3510:Electric power generation, transmission and distribution', 'PT'), 15),\n",
       " (('3510:Electric power generation, transmission and distribution', 'RFC'),\n",
       "  15),\n",
       " (('3510:Electric power generation, transmission and distribution', 'RO'), 17),\n",
       " (('3510:Electric power generation, transmission and distribution', 'RS'), 17),\n",
       " (('3510:Electric power generation, transmission and distribution', 'RU'), 27),\n",
       " (('3510:Electric power generation, transmission and distribution', 'RoW'),\n",
       "  40),\n",
       " (('3510:Electric power generation, transmission and distribution', 'SA'), 7),\n",
       " (('3510:Electric power generation, transmission and distribution', 'SE'), 24),\n",
       " (('3510:Electric power generation, transmission and distribution', 'SERC'),\n",
       "  15),\n",
       " (('3510:Electric power generation, transmission and distribution', 'SI'), 13),\n",
       " (('3510:Electric power generation, transmission and distribution', 'SK'), 20),\n",
       " (('3510:Electric power generation, transmission and distribution', 'SPP'),\n",
       "  15),\n",
       " (('3510:Electric power generation, transmission and distribution', 'TH'), 11),\n",
       " (('3510:Electric power generation, transmission and distribution', 'TR'), 25),\n",
       " (('3510:Electric power generation, transmission and distribution', 'TRE'),\n",
       "  16),\n",
       " (('3510:Electric power generation, transmission and distribution', 'TW'), 17),\n",
       " (('3510:Electric power generation, transmission and distribution', 'TZ'), 8),\n",
       " (('3510:Electric power generation, transmission and distribution', 'UA'), 18),\n",
       " (('3510:Electric power generation, transmission and distribution',\n",
       "   'UN-EUROPE'),\n",
       "  8),\n",
       " (('3510:Electric power generation, transmission and distribution',\n",
       "   'UN-OCEANIA'),\n",
       "  6),\n",
       " (('3510:Electric power generation, transmission and distribution',\n",
       "   'WECC, US only'),\n",
       "  18),\n",
       " (('3510:Electric power generation, transmission and distribution', 'ZA'), 13),\n",
       " (('3510a: Electric power generation based on liquid fuels', 'GLO'), 10),\n",
       " (('3510b: Electric power generation, photovoltaic', 'AT'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'AU'), 17),\n",
       " (('3510b: Electric power generation, photovoltaic', 'BE'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-AB'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-BC'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-MB'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-NB'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-NS'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-NT'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-NU'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-ON'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-PE'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-QC'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-SK'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CA-YK'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CH'), 18),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CN'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'CZ'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'DE'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'DK'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'ES'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'FI'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'FR'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'FRCC'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'GB'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'GR'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'HICC'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'HU'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'IN'), 16),\n",
       " (('3510b: Electric power generation, photovoltaic', 'IT'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'JP'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'KR'), 17),\n",
       " (('3510b: Electric power generation, photovoltaic', 'LU'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'MX'), 16),\n",
       " (('3510b: Electric power generation, photovoltaic', 'MY'), 16),\n",
       " (('3510b: Electric power generation, photovoltaic', 'NL'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'NPCC, US only'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'PT'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'RFC'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'RoW'), 18),\n",
       " (('3510b: Electric power generation, photovoltaic', 'SE'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'SERC'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'SI'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'TH'), 2),\n",
       " (('3510b: Electric power generation, photovoltaic', 'TW'), 16),\n",
       " (('3510b: Electric power generation, photovoltaic', 'WECC, US only'), 3),\n",
       " (('3510b: Electric power generation, photovoltaic', 'ZA'), 16),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'AT'),\n",
       "  4),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'BE'),\n",
       "  4),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'CH'),\n",
       "  21),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'CZ'),\n",
       "  3),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'DE'),\n",
       "  4),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'DK'),\n",
       "  2),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'ES'),\n",
       "  3),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'FI'),\n",
       "  2),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'FR'),\n",
       "  5),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'GB'),\n",
       "  2),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'GLO'),\n",
       "  12),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'GR'),\n",
       "  2),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'HU'),\n",
       "  6),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'IE'),\n",
       "  2),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'IT'),\n",
       "  5),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'JP'),\n",
       "  2),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'NL'),\n",
       "  2),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'RoW'),\n",
       "  16),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'SE'),\n",
       "  2),\n",
       " (('3520:Manufacture of gas; distribution of gaseous fuels through mains',\n",
       "   'SK'),\n",
       "  2),\n",
       " (('3530:Steam and air conditioning supply', 'ASCC'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'AT'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'AU'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'BE'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'BR'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'CA-AB'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'CA-BC'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'CA-NS'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'CA-ON'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'CA-PE'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'CA-QC'), 10),\n",
       " (('3530:Steam and air conditioning supply', 'CH'), 79),\n",
       " (('3530:Steam and air conditioning supply', 'CL'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'CN'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'CZ'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'DE'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'DK'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'ES'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'Europe without Switzerland'),\n",
       "  34),\n",
       " (('3530:Steam and air conditioning supply', 'FI'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'FR'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'FRCC'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'GB'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'GLO'), 23),\n",
       " (('3530:Steam and air conditioning supply', 'HICC'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'HU'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'IE'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'IN'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'IT'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'JP'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'KR'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'MRO, US only'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'MX'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'NL'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'NO'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'NPCC, US only'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'PE'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'PL'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'PT'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'RFC'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'RO'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'RU'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'RoW'), 86),\n",
       " (('3530:Steam and air conditioning supply', 'SE'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'SERC'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'SI'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'SK'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'SPP'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'TH'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'TR'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'TRE'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'TW'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'WECC, US only'), 2),\n",
       " (('3530:Steam and air conditioning supply', 'ZA'), 2),\n",
       " (('3530a: Steam and air conditioning supply based on liquid fuels ', 'BR'),\n",
       "  2),\n",
       " (('3530a: Steam and air conditioning supply based on liquid fuels ', 'CA-QC'),\n",
       "  3),\n",
       " (('3530a: Steam and air conditioning supply based on liquid fuels ', 'CH'),\n",
       "  11),\n",
       " (('3530a: Steam and air conditioning supply based on liquid fuels ',\n",
       "   'Europe without Switzerland'),\n",
       "  9),\n",
       " (('3530a: Steam and air conditioning supply based on liquid fuels ', 'GLO'),\n",
       "  3),\n",
       " (('3530a: Steam and air conditioning supply based on liquid fuels ', 'RoW'),\n",
       "  11),\n",
       " (('3530b: Solar collectors', 'CA-QC'), 4),\n",
       " (('3530b: Solar collectors', 'CH'), 10),\n",
       " (('3530b: Solar collectors', 'RoW'), 4),\n",
       " (('35:Electricity, gas, steam and air conditioning supply', 'RER'), 2),\n",
       " (('35:Electricity, gas, steam and air conditioning supply', 'RoW'), 2),\n",
       " (('3600:Water collection, treatment and supply', 'CA-QC'), 10),\n",
       " (('3600:Water collection, treatment and supply', 'CH'), 8),\n",
       " (('3600:Water collection, treatment and supply',\n",
       "   'Europe without Switzerland'),\n",
       "  9),\n",
       " (('3600:Water collection, treatment and supply', 'GLO'), 16),\n",
       " (('3600:Water collection, treatment and supply', 'RER'), 2),\n",
       " (('3600:Water collection, treatment and supply', 'RoW'), 13),\n",
       " (('3700:Sewerage', 'CA-QC'), 5),\n",
       " (('3700:Sewerage', 'CH'), 29),\n",
       " (('3700:Sewerage', 'GLO'), 31),\n",
       " (('3700:Sewerage', 'RER'), 3),\n",
       " (('3700:Sewerage', 'RoW'), 33),\n",
       " (('3811:Collection of non-hazardous waste', 'CH'), 3),\n",
       " (('3811:Collection of non-hazardous waste', 'Europe without Switzerland'), 2),\n",
       " (('3811:Collection of non-hazardous waste', 'GLO'), 3),\n",
       " (('3811:Collection of non-hazardous waste', 'RoW'), 3),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'AT'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'AU'), 2),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'BE'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'BG'), 7),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'CA-AB'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'CA-NB'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'CA-NS'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'CA-ON'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'CA-PE'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'CA-QC'), 8),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'CH'), 182),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'CZ'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'DE'), 15),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'DK'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'ES'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'FI'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'FR'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'GB'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'GLO'), 143),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'GR'), 2),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'HU'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'IE'), 2),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'IT'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'JP'), 7),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'KR'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'LU'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'MX'), 2),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'NL'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'NO'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'PL'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'PT'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'RER'), 6),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'RU'), 7),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'RoW'), 236),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'SE'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'SI'), 2),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'SK'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'TH'), 2),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'TR'), 9),\n",
       " (('3821:Treatment and disposal of non-hazardous waste', 'TW'), 7),\n",
       " (('3822:Treatment and disposal of hazardous waste', 'AT'), 2),\n",
       " (('3822:Treatment and disposal of hazardous waste', 'CH'), 53),\n",
       " (('3822:Treatment and disposal of hazardous waste', 'CZ'), 2),\n",
       " (('3822:Treatment and disposal of hazardous waste', 'DE'), 3),\n",
       " (('3822:Treatment and disposal of hazardous waste', 'ES'), 2),\n",
       " (('3822:Treatment and disposal of hazardous waste', 'FR'), 2),\n",
       " (('3822:Treatment and disposal of hazardous waste', 'GLO'), 69),\n",
       " (('3822:Treatment and disposal of hazardous waste', 'PL'), 2),\n",
       " (('3822:Treatment and disposal of hazardous waste', 'RoW'), 48),\n",
       " (('3822:Treatment and disposal of hazardous waste', 'SK'), 2),\n",
       " (('382:Waste treatment and disposal', 'GLO'), 2),\n",
       " (('3830:Materials recovery', 'CH'), 76),\n",
       " (('3830:Materials recovery', 'GLO'), 107),\n",
       " (('3830:Materials recovery', 'RER'), 11),\n",
       " (('3830:Materials recovery', 'RoW'), 64),\n",
       " (('3900:Remediation activities and other waste management services', 'GLO'),\n",
       "  10),\n",
       " (('3900:Remediation activities and other waste management services', 'RoW'),\n",
       "  2),\n",
       " (('4100:Construction of buildings', 'CH'), 19),\n",
       " (('4100:Construction of buildings', 'CN'), 3),\n",
       " (('4100:Construction of buildings', 'DE'), 2),\n",
       " (('4100:Construction of buildings', 'GLO'), 40),\n",
       " (('4100:Construction of buildings', 'RER'), 4),\n",
       " (('4100:Construction of buildings', 'RoW'), 32),\n",
       " (('4100:Construction of buildings', 'US'), 5),\n",
       " (('4100a: Construction of factory buildings for the metal industry', 'GLO'),\n",
       "  13),\n",
       " (('4100a: Construction of factory buildings for the metal industry', 'RER'),\n",
       "  10),\n",
       " (('4100a: Construction of factory buildings for the metal industry', 'RoW'),\n",
       "  13),\n",
       " (('4100a: Construction of factory buildings for the metal industry', 'SE'),\n",
       "  3),\n",
       " (('4210:Construction of roads and railways', 'CH'), 6),\n",
       " (('4210:Construction of roads and railways', 'GLO'), 6),\n",
       " (('4210:Construction of roads and railways', 'RoW'), 8),\n",
       " (('4220:Construction of utility projects', 'CA-QC'), 9),\n",
       " (('4220:Construction of utility projects', 'CH'), 20),\n",
       " (('4220:Construction of utility projects', 'Europe without Switzerland'), 6),\n",
       " (('4220:Construction of utility projects', 'GLO'), 29),\n",
       " (('4220:Construction of utility projects', 'RoW'), 23),\n",
       " (('4220a: Construction of utility projects for electricity production, except for liquid fuels',\n",
       "   'CA-QC'),\n",
       "  10),\n",
       " (('4220a: Construction of utility projects for electricity production, except for liquid fuels',\n",
       "   'CH'),\n",
       "  14),\n",
       " (('4220a: Construction of utility projects for electricity production, except for liquid fuels',\n",
       "   'DE'),\n",
       "  2),\n",
       " (('4220a: Construction of utility projects for electricity production, except for liquid fuels',\n",
       "   'GLO'),\n",
       "  63),\n",
       " (('4220a: Construction of utility projects for electricity production, except for liquid fuels',\n",
       "   'RER'),\n",
       "  13),\n",
       " (('4220a: Construction of utility projects for electricity production, except for liquid fuels',\n",
       "   'RoW'),\n",
       "  38),\n",
       " (('4220a: Construction of utility projects for electricity production, except for liquid fuels',\n",
       "   'US'),\n",
       "  2),\n",
       " (('4220b: Construction of utility projects for electricity production, for liquid fuels',\n",
       "   'GLO'),\n",
       "  2),\n",
       " (('4220b: Construction of utility projects for electricity production, for liquid fuels',\n",
       "   'RER'),\n",
       "  2),\n",
       " (('4220b: Construction of utility projects for electricity production, for liquid fuels',\n",
       "   'RoW'),\n",
       "  2),\n",
       " (('4290:Construction of other civil engineering projects', 'CA-QC'), 2),\n",
       " (('4290:Construction of other civil engineering projects', 'CH'), 30),\n",
       " (('4290:Construction of other civil engineering projects', 'DE'), 3),\n",
       " (('4290:Construction of other civil engineering projects', 'GLO'), 102),\n",
       " (('4290:Construction of other civil engineering projects', 'RER'), 25),\n",
       " (('4290:Construction of other civil engineering projects', 'RoW'), 65),\n",
       " (('4290:Construction of other civil engineering projects', 'US'), 2),\n",
       " (('4290:Construction of other civil engineering projects', 'ZA'), 2),\n",
       " (('4290a: Construction of infrastructure for petroleum refining and distribution',\n",
       "   'GLO'),\n",
       "  2),\n",
       " (('4290a: Construction of infrastructure for petroleum refining and distribution',\n",
       "   'RER'),\n",
       "  2),\n",
       " (('4290a: Construction of infrastructure for petroleum refining and distribution',\n",
       "   'RoW'),\n",
       "  2),\n",
       " (('4312:Site preparation', 'GLO'), 28),\n",
       " (('4312:Site preparation', 'RER'), 2),\n",
       " (('4312:Site preparation', 'RoW'), 2),\n",
       " (('4322:Plumbing, heat and air-conditioning installation', 'CH'), 18),\n",
       " (('4322:Plumbing, heat and air-conditioning installation', 'GLO'), 9),\n",
       " (('4322:Plumbing, heat and air-conditioning installation', 'RoW'), 18),\n",
       " (('4322a: Installation of solar collector systems', 'CH'), 4),\n",
       " (('4322a: Installation of solar collector systems', 'GLO'), 4),\n",
       " (('4322a: Installation of solar collector systems', 'RoW'), 4),\n",
       " (('4390:Other specialized construction activities', 'GLO'), 6),\n",
       " (('4390:Other specialized construction activities', 'RER'), 5),\n",
       " (('4520:Maintenance and repair of motor vehicles', 'CH'), 4),\n",
       " (('4520:Maintenance and repair of motor vehicles', 'GLO'), 8),\n",
       " (('4520:Maintenance and repair of motor vehicles', 'RER'), 2),\n",
       " (('4520:Maintenance and repair of motor vehicles', 'RoW'), 6),\n",
       " (('4540:Sale, maintenance and repair of motorcycles and related parts and accessori',\n",
       "   'CH'),\n",
       "  2),\n",
       " (('4540:Sale, maintenance and repair of motorcycles and related parts and accessori',\n",
       "   'GLO'),\n",
       "  4),\n",
       " (('4540:Sale, maintenance and repair of motorcycles and related parts and accessori',\n",
       "   'RoW'),\n",
       "  2),\n",
       " (('4911:Passenger rail transport, interurban', 'DE'), 2),\n",
       " (('4911:Passenger rail transport, interurban', 'FR'), 2),\n",
       " (('4911:Passenger rail transport, interurban', 'IT'), 2),\n",
       " (('4911:Passenger rail transport, interurban', 'RoW'), 2),\n",
       " (('4912:Freight rail transport', 'CH'), 5),\n",
       " (('4912:Freight rail transport', 'CN'), 4),\n",
       " (('4912:Freight rail transport', 'Europe without Switzerland'), 3),\n",
       " (('4912:Freight rail transport', 'RoW'), 4),\n",
       " (('4912:Freight rail transport', 'US'), 2),\n",
       " (('4921:Urban and suburban passenger land transport', 'CH'), 4),\n",
       " (('4921:Urban and suburban passenger land transport', 'GLO'), 3),\n",
       " (('4921:Urban and suburban passenger land transport', 'RoW'), 3),\n",
       " (('4922:Other passenger land transport', 'CH'), 7),\n",
       " (('4922:Other passenger land transport', 'GLO'), 35),\n",
       " (('4922:Other passenger land transport', 'RER'), 38),\n",
       " (('4922:Other passenger land transport', 'RoW'), 42),\n",
       " (('4923:Freight transport by road', 'CH'), 2),\n",
       " (('4923:Freight transport by road', 'GLO'), 19),\n",
       " (('4923:Freight transport by road', 'RER'), 17),\n",
       " (('4923:Freight transport by road', 'RoW'), 19),\n",
       " (('4930:Transport via pipeline', 'DZ'), 2),\n",
       " (('4930:Transport via pipeline', 'GLO'), 6),\n",
       " (('4930:Transport via pipeline', 'NO'), 2),\n",
       " (('4930:Transport via pipeline', 'RoW'), 2),\n",
       " (('5012:Sea and coastal freight water transport', 'GLO'), 6),\n",
       " (('5022:Inland freight water transport', 'GLO'), 2),\n",
       " (('5022:Inland freight water transport', 'RER'), 2),\n",
       " (('5022:Inland freight water transport', 'RoW'), 2),\n",
       " (('5110:Passenger air transport', 'GLO'), 5),\n",
       " (('5110:Passenger air transport', 'RER'), 2),\n",
       " (('5110:Passenger air transport', 'RoW'), 2),\n",
       " (('5120:Freight air transport', 'RER'), 2),\n",
       " (('5120:Freight air transport', 'RoW'), 2),\n",
       " (('6110:Wired telecommunications activities', 'CH'), 6),\n",
       " (('6110:Wired telecommunications activities', 'GLO'), 6),\n",
       " (('6110:Wired telecommunications activities', 'RoW'), 3),\n",
       " (('68:Real estate activities', 'BR'), 2),\n",
       " (('68:Real estate activities', 'CO'), 3),\n",
       " (('68:Real estate activities', 'GLO'), 3),\n",
       " (('68:Real estate activities', 'IN'), 3),\n",
       " (('68:Real estate activities', 'RAF'), 2),\n",
       " (('68:Real estate activities', 'RoW'), 4),\n",
       " (('7110:Architectural and engineering activities and related technical consultancy',\n",
       "   'GLO'),\n",
       "  2),\n",
       " (('7110:Architectural and engineering activities and related technical consultancy',\n",
       "   'RoW'),\n",
       "  2),\n",
       " (('8219:Photocopying, document preparation and other specialized office support act',\n",
       "   'CA-QC'),\n",
       "  19),\n",
       " (('8219:Photocopying, document preparation and other specialized office support act',\n",
       "   'CH'),\n",
       "  22),\n",
       " (('8219:Photocopying, document preparation and other specialized office support act',\n",
       "   'Europe without Switzerland'),\n",
       "  16),\n",
       " (('8219:Photocopying, document preparation and other specialized office support act',\n",
       "   'GLO'),\n",
       "  19),\n",
       " (('8219:Photocopying, document preparation and other specialized office support act',\n",
       "   'RoW'),\n",
       "  19),\n",
       " (('8292:Packaging activities', 'CH'), 4),\n",
       " (('8292:Packaging activities', 'GLO'), 4),\n",
       " (('8292:Packaging activities', 'RoW'), 4)]"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sorted([(key, value) for key, value in group_by_region.items() if value > 1])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(11184, 1117, 11301)"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sum(group_by_region.values()), len(group_by_region), len(ei31cutoff.data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'activity': 'ac3c5ebf-a3d2-4bda-92ce-80af2f73999b',\n",
       "  'activity type': 'market activity',\n",
       "  'classifications': [('EcoSpold01Categories', 'electricity/supply mix'),\n",
       "   ('ISIC rev.4 ecoinvent',\n",
       "    '3510:Electric power generation, transmission and distribution')],\n",
       "  'comment': 'This dataset describes the electricity available on the high voltage level in this country. This is done by showing the transmission of 1kWh electricity at high voltage.\\n\\n\\nTechnology:  Average technology used to transmit and distribute electricity. Includes underground and overhead lines. Electricity production according to related  technology datasets.\\n\\nDefinition of the voltage levels: \\n - High voltage level above 24 kV (large scale industry)\\n - Medium voltage level between 1 kV and 24 kV (medium to small scale industry, service sector\\nand public buildings)\\n - Low voltage level below 1 kV (Households)\\nTime period:  The annual production volumes of all electricity production datasets in ecoinvent version 3.0 are taken from IEA/OECD statistics and are valid for 2008.',\n",
       "  'database': 'ecoinvent 3.1 cutoff',\n",
       "  'exchanges': [{'activity': None,\n",
       "    'amount': 1.0,\n",
       "    'comment': 'EcoSpold01Location=AT',\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 1.0,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 45667002560.0,\n",
       "    'type': 'production',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': '580321af-986d-4f12-8bcf-e726bac2bfa7',\n",
       "    'amount': 3.17e-10,\n",
       "    'comment': 'EcoSpold01Location=UCTE',\n",
       "    'flow': 'c975834b-76cd-431c-a458-98ff9fecb9e5',\n",
       "    'loc': -21.87,\n",
       "    'name': 'transmission network, long-distance',\n",
       "    'pedigree': {'completeness': 2,\n",
       "     'further technological correlation': 3,\n",
       "     'geographical correlation': 4,\n",
       "     'reliability': 3,\n",
       "     'temporal correlation': 5},\n",
       "    'production volume': 0.0,\n",
       "    'scale': 0.1507,\n",
       "    'scale without pedigree': 0.1,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 2,\n",
       "    'unit': 'kilometer'},\n",
       "   {'activity': 'ac3c5ebf-a3d2-4bda-92ce-80af2f73999b',\n",
       "    'amount': 0.02535,\n",
       "    'comment': 'EcoSpold01Location=AT',\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': -3.98,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'pedigree': {'completeness': 1,\n",
       "     'further technological correlation': 1,\n",
       "     'geographical correlation': 1,\n",
       "     'reliability': 1,\n",
       "     'temporal correlation': 3},\n",
       "    'production volume': 0.0,\n",
       "    'scale': 0.002,\n",
       "    'scale without pedigree': 0.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 2,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': '6f34059a-95e6-469d-b231-e0b5f85c1a67',\n",
       "    'amount': 6.58209848825026e-09,\n",
       "    'comment': 'Estimation. Data overtaken from Switzerland. \\n\\nSwiss data are calculated values based on the electricity transported in this voltage level (60129 GWh) and the total medium voltage power line length in Switzerland (cables and aerial lines - 15831 km). Lifetime is assumed to be 40 years. \\n\\nSee Itten&Frischknecht 2012, Tab. 4.1 and Tab. 4.3.',\n",
       "    'flow': '1e62439e-fa8d-4049-9460-e0c155d2ddbe',\n",
       "    'loc': -18.59,\n",
       "    'name': 'transmission network, electricity, high voltage',\n",
       "    'pedigree': {'completeness': 2,\n",
       "     'further technological correlation': 3,\n",
       "     'geographical correlation': 4,\n",
       "     'reliability': 3,\n",
       "     'temporal correlation': 5},\n",
       "    'production volume': 0.0,\n",
       "    'scale': 0.1507,\n",
       "    'scale without pedigree': 0.1,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 2,\n",
       "    'unit': 'kilometer'},\n",
       "   {'activity': 'fed9a045-c924-4c13-85c7-e32186b6c385',\n",
       "    'amount': 0.360260123891083,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.360260123891083,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 16452000000.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': '64e5c082-c016-4661-a1d3-6d30bc96666e',\n",
       "    'amount': 0.000569338878018974,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.000569338878018974,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 26000000.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': 'bbebda70-9e6f-4a8a-8339-7231996cc671',\n",
       "    'amount': 0.142947853681072,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.142947853681072,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 6528000000.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': 'cc381c3e-48ca-4cf5-848d-aa706f518e1e',\n",
       "    'amount': 0.0233428939987779,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.0233428939987779,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 1066000000.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': 'bf8bebf2-825c-41bf-aa6d-f2aed06b5f7e',\n",
       "    'amount': 0.0767470103910406,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.0767470103910406,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 3504805920.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': '150ce8aa-e303-47ae-9cd5-e9f2e7c79f1c',\n",
       "    'amount': 0.013667275823062,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.013667275823062,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 624143520.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': '847ad90b-2b97-4101-9fcc-e01165674e70',\n",
       "    'amount': 0.0331919555702935,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.0331919555702935,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 1515777120.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': '88f874dc-ee9f-44c6-8ff0-da327a43b78e',\n",
       "    'amount': 0.0262832227366578,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.0262832227366578,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 1200276000.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': '63cbcbb6-0b25-4d86-aca7-5547a56e10dc',\n",
       "    'amount': 0.0298902910959961,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.0298902910959961,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 1365000000.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': '4119c573-d8b3-48a1-ab13-c79641e88631',\n",
       "    'amount': 0.105393385380974,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.105393385380974,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 4813000000.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': '3d0013a4-5715-4a73-80cc-c627e8625ebb',\n",
       "    'amount': 0.14533469743892,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.14533469743892,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 6637000000.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': 'bd5db775-c244-4b3c-bfc8-f9c16e7e73ce',\n",
       "    'amount': 0.00514594755132534,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.00514594755132534,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 235000000.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'activity': '572d982f-6964-437d-a225-f4c018617329',\n",
       "    'amount': 0.0372260035627791,\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 0.0372260035627791,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 1700000000.0,\n",
       "    'type': 'technosphere',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'},\n",
       "   {'amount': 4.15772755242894e-06,\n",
       "    'comment': 'Literatur value/estimation. The electro-magnetic field near high voltage aerial lines can lead to the ionisation of air molecules and to the formation of nitrous oxide and ozone. This reaction happens in a boundary layer called corona. The formation of pollutants depends on the weather and the surface of the conductor. Therefore, only a few general assumptions can be made.\\n\\nBohlin et al. 1991 and Böhringer et al. 1988 report very low ozone concentrations near the corona, which hardly can be measured. The value here is estimated from Swiss data: \\n - annual ozone emissions: 50-1250 tons (Knoepfel 1995, p. 99). The geometric mean of 250 t/year is used for calculations.\\n - annual amount of electricity transported in Switzerland: 60129 GWh. \\n\\nS. Bohlin, K. Eriksson, G. Flisberg, \"Electrical transmission\", World Clean Energy Conf., Geneva, Nov. 1991\\n\\nA. Böhringer et al., \"Ozonbildung an Hochspannungsfreileitungen\", Elektrizitätswirtschaft 87(1988) Nr. 21, S. 1017-1022',\n",
       "    'flow': '2058d91e-bb9f-4fce-8e53-131825b14a23',\n",
       "    'loc': -12.32,\n",
       "    'name': 'Ozone',\n",
       "    'pedigree': {'completeness': 5,\n",
       "     'further technological correlation': 5,\n",
       "     'geographical correlation': 5,\n",
       "     'reliability': 5,\n",
       "     'temporal correlation': 5},\n",
       "    'production volume': 0.0,\n",
       "    'scale': 0.71,\n",
       "    'scale without pedigree': 0.5,\n",
       "    'type': 'biosphere',\n",
       "    'uncertainty type': 2,\n",
       "    'unit': 'kilogram'},\n",
       "   {'amount': 5e-06,\n",
       "    'comment': 'Literatur value/estimation. The electro-magnetic field near high voltage aerial lines can lead to the ionisation of air molecules and to the formation of nitrous oxide and ozone. This reaction happens in a boundary layer called corona. The formation of pollutants depends on the weather and the surface of the conductor. Therefore, only a few general assumptions can be made.\\n\\nHill et al. 1984 report a nitrous oxide formation rate between 0.01 and 0.21 g per kWh of electricity transmitted, valid for North American conditions. The geometric mean of 0.05 g/kWh. The emission rates are reduced by a factor of 10 to account for the shorter transmission distances in this country.',\n",
       "    'flow': '20185046-64bb-4c09-a8e7-e8a9e144ca98',\n",
       "    'loc': -12.21,\n",
       "    'name': 'Dinitrogen monoxide',\n",
       "    'pedigree': {'completeness': 5,\n",
       "     'further technological correlation': 5,\n",
       "     'geographical correlation': 5,\n",
       "     'reliability': 5,\n",
       "     'temporal correlation': 5},\n",
       "    'production volume': 0.0,\n",
       "    'scale': 0.56,\n",
       "    'scale without pedigree': 0.35,\n",
       "    'type': 'biosphere',\n",
       "    'uncertainty type': 2,\n",
       "    'unit': 'kilogram'}],\n",
       "  'filename': 'ac3c5ebf-a3d2-4bda-92ce-80af2f73999b_66c93e71-f32b-4591-901c-55395db5c132.spold',\n",
       "  'location': 'DK',\n",
       "  'name': 'market for electricity, high voltage',\n",
       "  'parameters': {'electricity_losses_total': {'amount': 0.065,\n",
       "    'comment': 'Total losses of electricity from the net electricity fed into the grid until arriving at the end user (transmission and transformation losses).\\nThe total share of electricity losses on the electricity delivered in this country was determined using the total amount of losses given in the statistics of the IEA (IEA 2010, 2011).\\n\\nIEA (2010) Energy Statistics for different countries. lectricity/Heat Data. Retrieved June 2011 from: http://www.iea.org/stats/prodresult.asp?PRODUCT=Electricity/Heat\\n\\nIEA (2011) OECD - Electricity and heat generation. International Energy Agency (IEA) Electricity information statistics (database), retrieved from: http://www.oecd-ilibrary.org/energy/.',\n",
       "    'description': 'total electricity losses within the country',\n",
       "    'loc': -3.04,\n",
       "    'pedigree': {'completeness': 1,\n",
       "     'further technological correlation': 2,\n",
       "     'geographical correlation': 1,\n",
       "     'reliability': 2,\n",
       "     'temporal correlation': 1},\n",
       "    'scale': 0.0018,\n",
       "    'scale without pedigree': 0.0006,\n",
       "    'uncertainty type': 2,\n",
       "    'unit': 'dimensionless'},\n",
       "   'electricity_transmission_losses': {'amount': 0.39,\n",
       "    'comment': 'Losses of electricity during transmission in the high voltage grid. \\n\\nThe value for losses on the high voltage level additionally contains the losses for transformation within this level!\\n\\nBecause of the lack of country specific information on the distribution of the losses on the different voltage levels, the Swiss shares of the electricity demand and losses are used for this country (Itten&Frischknecht 2012, Tab. 4.1). Swiss data are based on Swiss electricity statistics 2009 (BFE 2010) and personal communication (ewz 2011)\\n\\nTab. 4.1:\\nTotal losses = 100%\\n\\nTotal losses high voltage: 39%, out of it 6% transformation and 33% transmission\\nTotal losses medium voltage: 13%, out of it 8% transformation and 5% transmission\\nTotal losses low voltage: 48%, out of it 24% transformation and 24% transmission\\n\\nItten R. and Frischknecht R. (2012) Life Cycle Inventories of Electricity Mixes and Grid. ESU-services Ltd., Uster, Switzerland.\\n\\nBFE (2010) Schweizerische Elektrizitätsstatistik 2009. Bundesamt für Energie, Bern, CH, retrieved from: http://www.bfe.admin.ch/themen/00526/00541/00542/00630/index.html?lang=de&dossier_id=04840\\n\\nGerhard Emch, EWZ, personal communication on 22.06.2011',\n",
       "    'description': 'electricity transmission losses',\n",
       "    'loc': -0.94,\n",
       "    'pedigree': {'completeness': 3,\n",
       "     'further technological correlation': 5,\n",
       "     'geographical correlation': 3,\n",
       "     'reliability': 4,\n",
       "     'temporal correlation': 1},\n",
       "    'scale': 0.1297,\n",
       "    'scale without pedigree': 0.001,\n",
       "    'uncertainty type': 2,\n",
       "    'unit': 'dimensionless'}},\n",
       "  'products': [{'activity': None,\n",
       "    'amount': 1.0,\n",
       "    'comment': 'EcoSpold01Location=AT',\n",
       "    'flow': '66c93e71-f32b-4591-901c-55395db5c132',\n",
       "    'loc': 1.0,\n",
       "    'name': 'electricity, high voltage',\n",
       "    'production volume': 45667002560.0,\n",
       "    'type': 'production',\n",
       "    'uncertainty type': 0,\n",
       "    'unit': 'kilowatt hour'}],\n",
       "  'type': 'process'}]"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "[x for x in ei31cutoff.data if x['location'] == 'DK' and 'market for electricity, high' in x['name']]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "117"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "11301 - 11184"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.4.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
