{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Creating ecoinvent 3 migrations\n",
    "\n",
    "This notebook describes how migrations were created for ecoinvent versions 3.1 and 3.2 to 3.3. Migrations were created using the ecoinvent change spreadsheets, and some manual matching. Manual matching occurred outside of this notebook.\n",
    "\n",
    "Start by setting up a new project:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "from brightway2 import *\n",
    "projects.set_current(\"ecoinvent updates\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Creating default biosphere\n",
      "\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Writing activities to SQLite3 database:\n",
      "0%                          100%\n",
      "[##########                    ] | ETA[sec]: 0.371 "
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Applying strategy: normalize_units\n",
      "Applying strategy: drop_unspecified_subcategories\n",
      "Applied 2 strategies in 0.01 seconds\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "[##############################] | ETA[sec]: 0.000 \n",
      "Total time elapsed: 0.426 sec\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Title: Writing activities to SQLite3 database:\n",
      "  Started: 12/06/2016 10:51:41\n",
      "  Finished: 12/06/2016 10:51:41\n",
      "  Total time elapsed: 0.426 sec\n",
      "  CPU %: 101.800000\n",
      "  Memory %: 0.409055\n",
      "Created database: biosphere3\n",
      "Creating default LCIA methods\n",
      "\n",
      "Applying strategy: normalize_units\n",
      "Applying strategy: set_biosphere_type\n",
      "Applying strategy: drop_unspecified_subcategories\n",
      "Applying strategy: link_iterable_by_fields\n",
      "Applied 4 strategies in 0.97 seconds\n",
      "Wrote 718 LCIA methods with 178008 characterization factors\n",
      "Creating core data migrations\n",
      "\n"
     ]
    }
   ],
   "source": [
    "bw2setup()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Extracting XML data from 11301 datasets\n",
      "Extracted 11301 datasets in 39.37 seconds\n",
      "Applying strategy: normalize_units\n",
      "Applying strategy: remove_zero_amount_coproducts\n",
      "Applying strategy: remove_zero_amount_inputs_with_no_activity\n",
      "Applying strategy: remove_unnamed_parameters\n",
      "Applying strategy: es2_assign_only_product_with_amount_as_reference_product\n",
      "Applying strategy: assign_single_product_as_activity\n",
      "Applying strategy: create_composite_code\n",
      "Applying strategy: drop_unspecified_subcategories\n",
      "Applying strategy: link_biosphere_by_flow_uuid\n",
      "Applying strategy: link_internal_technosphere_by_composite_code\n",
      "Applying strategy: delete_exchanges_missing_activity\n",
      "Applying strategy: delete_ghost_exchanges\n",
      "Applying strategy: nuncertainty\n",
      "Applied 13 strategies in 3.12 seconds\n",
      "11301 datasets\n",
      "521712 exchanges\n",
      "780 unlinked exchanges\n",
      "  Type biosphere: 12 unique unlinked exchanges\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "(11301, 521712, 780)"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ei = SingleOutputEcospold2Importer(\n",
    "    \"/Users/cmutel/Documents/LCA Documents/Ecoinvent/3.1/cutoff/datasets\", \n",
    "    \"3.1 cutoff\"\n",
    ")\n",
    "ei.apply_strategies()\n",
    "ei.statistics()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Fluorene_temp\n",
      "Fluoranthene_temp\n",
      "Dibenz(a,h)anthracene_temp\n",
      "Benzo(k)fluoranthene_temp\n",
      "Benzo(ghi)perylene_temp\n",
      "Benzo(b)fluoranthene_temp\n",
      "Benzo(a)anthracene_temp\n",
      "Acenaphthylene_temp\n",
      "Chrysene_temp\n",
      "Pyrene_temp\n",
      "Phenanthrene_temp\n",
      "Indeno(1,2,3-c,d)pyrene_temp\n"
     ]
    }
   ],
   "source": [
    "for x in ei.unlinked:\n",
    "    print(x['name'])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "These temporary flows can be safely dropped."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Applying strategy: drop_unlinked\n",
      "Applied 1 strategies in 0.16 seconds\n"
     ]
    }
   ],
   "source": [
    "ei.drop_unlinked(True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Writing activities to SQLite3 database:\n",
      "0%                          100%\n",
      "[##############################] | ETA[sec]: 0.000 \n",
      "Total time elapsed: 48.384 sec\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Title: Writing activities to SQLite3 database:\n",
      "  Started: 12/06/2016 10:53:25\n",
      "  Finished: 12/06/2016 10:54:13\n",
      "  Total time elapsed: 48.384 sec\n",
      "  CPU %: 80.900000\n",
      "  Memory %: 3.420854\n",
      "Created database: 3.1 cutoff\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "Brightway2 SQLiteBackend: 3.1 cutoff"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ei.write_database()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Extracting XML data from 12916 datasets\n",
      "Extracted 12916 datasets in 70.87 seconds\n",
      "Applying strategy: normalize_units\n",
      "Applying strategy: remove_zero_amount_coproducts\n",
      "Applying strategy: remove_zero_amount_inputs_with_no_activity\n",
      "Applying strategy: remove_unnamed_parameters\n",
      "Applying strategy: es2_assign_only_product_with_amount_as_reference_product\n",
      "Applying strategy: assign_single_product_as_activity\n",
      "Applying strategy: create_composite_code\n",
      "Applying strategy: drop_unspecified_subcategories\n",
      "Applying strategy: link_biosphere_by_flow_uuid\n",
      "Applying strategy: link_internal_technosphere_by_composite_code\n",
      "Applying strategy: delete_exchanges_missing_activity\n",
      "Applying strategy: delete_ghost_exchanges\n",
      "Applying strategy: nuncertainty\n",
      "Applied 13 strategies in 2.76 seconds\n",
      "12916 datasets\n",
      "459268 exchanges\n",
      "0 unlinked exchanges\n",
      "  \n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "(12916, 459268, 0)"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ei = SingleOutputEcospold2Importer(\n",
    "    \"/Users/cmutel/Documents/LCA Documents/Ecoinvent/3.2/cutoff/datasets\", \n",
    "    \"3.2 cutoff\"\n",
    ")\n",
    "ei.apply_strategies()\n",
    "ei.statistics()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Writing activities to SQLite3 database:\n",
      "0%                          100%\n",
      "[##############################] | ETA[sec]: 0.000 \n",
      "Total time elapsed: 38.414 sec\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Title: Writing activities to SQLite3 database:\n",
      "  Started: 12/06/2016 10:56:15\n",
      "  Finished: 12/06/2016 10:56:54\n",
      "  Total time elapsed: 38.414 sec\n",
      "  CPU %: 88.000000\n",
      "  Memory %: 5.748880\n",
      "Created database: 3.2 cutoff\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "Brightway2 SQLiteBackend: 3.2 cutoff"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ei.write_database()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Extracting XML data from 13831 datasets\n",
      "Extracted 13831 datasets in 121.34 seconds\n",
      "Applying strategy: normalize_units\n",
      "Applying strategy: remove_zero_amount_coproducts\n",
      "Applying strategy: remove_zero_amount_inputs_with_no_activity\n",
      "Applying strategy: remove_unnamed_parameters\n",
      "Applying strategy: es2_assign_only_product_with_amount_as_reference_product\n",
      "Applying strategy: assign_single_product_as_activity\n",
      "Applying strategy: create_composite_code\n",
      "Applying strategy: drop_unspecified_subcategories\n",
      "Applying strategy: link_biosphere_by_flow_uuid\n",
      "Applying strategy: link_internal_technosphere_by_composite_code\n",
      "Applying strategy: delete_exchanges_missing_activity\n",
      "Applying strategy: delete_ghost_exchanges\n",
      "Applying strategy: nuncertainty\n",
      "Applied 13 strategies in 3.17 seconds\n",
      "13831 datasets\n",
      "501148 exchanges\n",
      "0 unlinked exchanges\n",
      "  \n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "(13831, 501148, 0)"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ei = SingleOutputEcospold2Importer(\n",
    "    \"/Users/cmutel/Documents/LCA Documents/Ecoinvent/3.3/cutoff/datasets\", \n",
    "    \"3.3 cutoff\"\n",
    ")\n",
    "ei.apply_strategies()\n",
    "ei.statistics()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Writing activities to SQLite3 database:\n",
      "0%                          100%\n",
      "[##############################] | ETA[sec]: 0.000 \n",
      "Total time elapsed: 44.089 sec\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Title: Writing activities to SQLite3 database:\n",
      "  Started: 12/06/2016 10:59:53\n",
      "  Finished: 12/06/2016 11:00:37\n",
      "  Total time elapsed: 44.089 sec\n",
      "  CPU %: 85.600000\n",
      "  Memory %: 5.835319\n",
      "Created database: 3.3 cutoff\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "Brightway2 SQLiteBackend: 3.3 cutoff"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ei.write_database()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 3.1 to 3.3\n",
    "\n",
    "Which processes don't map exactly?"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "data_31 = {(ds['name'], ds['reference product'], ds['location']) for ds in Database(\"3.1 cutoff\")}\n",
    "data_33 = {(ds['name'], ds['reference product'], ds['location']) for ds in Database(\"3.3 cutoff\")}"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "814 out of 11301 activities are not the same in 3.3."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(11301, 814)"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(data_31), len(data_31.difference(data_33))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Let's get a selection of the missing activities."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('market for scrap steel', 'scrap steel', 'GLO'),\n",
       " ('electricity production, hard coal', 'electricity, high voltage', 'PL'),\n",
       " ('electricity production, photovoltaic, 3kWp flat-roof installation, multi-Si',\n",
       "  'electricity, low voltage',\n",
       "  'TW'),\n",
       " ('apple production', 'apple', 'GLO'),\n",
       " ('treatment of manure and biowaste by anaerobic digestion, from manure, liquid, cattle',\n",
       "  'biogas',\n",
       "  'RoW'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'RoW'),\n",
       " ('field application of potassium nitrate',\n",
       "  'potassium fertiliser, as K2O',\n",
       "  'GLO'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'NO'),\n",
       " ('market for sawnwood, lath, hardwood, raw, air dried',\n",
       "  'sawnwood, lath, hardwood, raw, air dried',\n",
       "  'GLO'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CZ'),\n",
       " ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 3'),\n",
       " ('market for electricity, high voltage', 'electricity, high voltage', 'CN'),\n",
       " ('market for hazardous waste, for incineration',\n",
       "  'hazardous waste, for incineration',\n",
       "  'GLO'),\n",
       " ('concrete production, normal', 'concrete, normal', 'CH'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-NS'),\n",
       " ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area 1'),\n",
       " ('treatment of wastewater, average, capacity 1.6E8l/year',\n",
       "  'wastewater, average',\n",
       "  'RoW'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, ribbon-Si, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'MY'),\n",
       " ('electricity production, photovoltaic, 3kWp facade installation, single-Si, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'KR'),\n",
       " ('market for lightweight concrete block, expanded clay',\n",
       "  'lightweight concrete block, expanded clay',\n",
       "  'GLO'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'CA-NT'),\n",
       " ('field application of compost', 'phosphate fertiliser, as P2O5', 'GLO'),\n",
       " ('market for pulpwood, hardwood, measured as solid wood under bark',\n",
       "  'pulpwood, hardwood, measured as solid wood under bark',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, board, hardwood, air dried, planed',\n",
       "  'sawnwood, board, hardwood, air dried, planed',\n",
       "  'GLO'),\n",
       " ('sawing, softwood', 'saw dust, wet, measured as dry mass', 'CH'),\n",
       " ('board, hardwood, raw, air drying',\n",
       "  'sawnwood, board, hardwood, raw, air dried',\n",
       "  'CH'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, CdTe, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'ZA'),\n",
       " ('cement production, alternative constituents 6-20%', 'hard coal ash', 'CH'),\n",
       " ('treatment of blast furnace slag, to inert waste',\n",
       "  'blast furnace slag',\n",
       "  'US'),\n",
       " ('ethanol production from sugar cane',\n",
       "  'ethanol, without water, in 95% solution state, from fermentation',\n",
       "  'BR'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, multi-Si, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'KR'),\n",
       " ('market for vine tomato', 'vine tomato', 'GLO'),\n",
       " ('electricity, high voltage, import from TW',\n",
       "  'electricity, high voltage',\n",
       "  'CN'),\n",
       " ('electricity production, coal, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 1'),\n",
       " ('diesel, burned in diesel-electric generating set',\n",
       "  'diesel, burned in diesel-electric generating set',\n",
       "  'GLO'),\n",
       " ('rock wool production', 'rock wool', 'CH'),\n",
       " ('harvest, roundwood, shrubland', 'roundwood', 'GLO'),\n",
       " ('electricity production, nuclear, pressure water reactor',\n",
       "  'electricity, high voltage',\n",
       "  'IN'),\n",
       " ('field application of potassium nitrate',\n",
       "  'nitrogen fertiliser, as N',\n",
       "  'GLO'),\n",
       " ('cork forestry', 'cork, raw', 'RER'),\n",
       " ('market for electricity, for reuse in municipal waste incineration only',\n",
       "  'electricity, for reuse in municipal waste incineration only',\n",
       "  'CA-NB'),\n",
       " ('market for wood preservation, oscillating pressure method, organic salt, Cr-free, outdoor use, ground contact, as(...)_5',\n",
       "  'wood preservation, oscillating pressure method, organic salt, Cr-free, outdoor use, ground contact',\n",
       "  'GLO'),\n",
       " ('treatment of manure and biowaste by anaerobic digestion', 'biogas', 'RoW'),\n",
       " ('clear-cutting, shrubland to arable land',\n",
       "  'land tenure, arable land, measured as carbon net primary productivity',\n",
       "  'RAF'),\n",
       " ('debarking, softwood',\n",
       "  'sawlog and veneer log, softwood, debarked, measured as solid wood',\n",
       "  'RoW'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-NB'),\n",
       " ('planing, beam, hardwood, air dried',\n",
       "  'shaving, hardwood, measured as dry mass',\n",
       "  'RoW'),\n",
       " ('market for inert waste', 'inert waste', 'GLO'),\n",
       " ('board, hardwood, raw, kiln drying',\n",
       "  'sawnwood, board, hardwood, raw, kiln dried',\n",
       "  'RoW'),\n",
       " ('market for electricity, for reuse in municipal waste incineration only',\n",
       "  'electricity, for reuse in municipal waste incineration only',\n",
       "  'CA-AB'),\n",
       " ('market for wood preservation, spray tunnel/deluging, organic solvent-based, outdoor use, no ground contact, as am(...)_7',\n",
       "  'wood preservation, spray tunnel/deluging, organic solvent-based, outdoor use, no ground contact',\n",
       "  'GLO'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'PT'),\n",
       " ('market for used silencer steel, DN 315',\n",
       "  'used silencer steel, DN 315',\n",
       "  'GLO'),\n",
       " ('sawnwood production, hardwood, raw, air dried',\n",
       "  'sawnwood, hardwood, raw, air dried',\n",
       "  'RoW'),\n",
       " ('market for green manure, organic, until April',\n",
       "  'green manure, organic, until April',\n",
       "  'GLO'),\n",
       " ('market for used blower and heat exchange unit decentralized, 180-250 m3/h',\n",
       "  'used blower and heat exchange unit decentralized, 180-250 m3/h',\n",
       "  'GLO'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, CIS, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'MY'),\n",
       " ('electricity, high voltage, import from HR',\n",
       "  'electricity, high voltage',\n",
       "  'HU'),\n",
       " ('aluminium production, primary, liquid, Söderberg',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area 3'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'RFC'),\n",
       " ('treatment of straw, organic, in furnace 300kW',\n",
       "  'heat, district or industrial, other than natural gas',\n",
       "  'GLO'),\n",
       " ('planing, board, softwood, kiln dried',\n",
       "  'sawnwood, board, softwood, kiln dried, planed',\n",
       "  'CH'),\n",
       " ('market for waste concrete', 'waste concrete', 'GLO'),\n",
       " ('electricity production, hard coal', 'electricity, high voltage', 'BA'),\n",
       " ('intensification, arable land',\n",
       "  'land tenure, arable land, measured as carbon net primary productivity',\n",
       "  'GLO'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, CdTe, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'MY'),\n",
       " ('electricity production, natural gas, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'UN-EUROPE'),\n",
       " ('market for tomato', 'tomato', 'GLO'),\n",
       " ('market for used sealing tape aluminium/PE, 50 mm wide',\n",
       "  'used sealing tape aluminium/PE, 50 mm wide',\n",
       "  'GLO'),\n",
       " ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 4&5 without China'),\n",
       " ('market for used insulation spiral-seam duct rockwool, DN 400',\n",
       "  'used insulation spiral-seam duct rockwool, DN 400',\n",
       "  'GLO'),\n",
       " ('market for barley seed, Swiss integrated production, for sowing',\n",
       "  'barley seed, Swiss integrated production, for sowing',\n",
       "  'GLO'),\n",
       " ('electricity production, geothermal', 'electricity, high voltage', 'JP'),\n",
       " ('market for fly ash and scrubber sludge',\n",
       "  'fly ash and scrubber sludge',\n",
       "  'GLO'),\n",
       " ('planing, board, softwood, kiln dried',\n",
       "  'shaving, softwood, measured as dry mass',\n",
       "  'RoW'),\n",
       " ('concrete production, sole plate and foundation',\n",
       "  'concrete, sole plate and foundation',\n",
       "  'CH'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'CA-MB'),\n",
       " ('market for sawnwood, hardwood, raw, air dried',\n",
       "  'sawnwood, hardwood, raw, air dried',\n",
       "  'RoW'),\n",
       " ('pear production', 'pear', 'GLO'),\n",
       " ('electricity production, lignite', 'electricity, high voltage', 'PL'),\n",
       " ('market for rape seed, for sowing', 'rape seed, for sowing', 'GLO'),\n",
       " ('market for anhydrite rock', 'anhydrite rock', 'GLO'),\n",
       " ('rock wool factory construction', 'rock wool factory', 'RoW'),\n",
       " ('market for concrete, high exacting requirements',\n",
       "  'concrete, high exacting requirements',\n",
       "  'GLO'),\n",
       " ('electricity production, photovoltaic, 3kWp facade installation, single-Si, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'TW'),\n",
       " ('treatment of manure and biowaste by anaerobic digestion', 'biogas', 'CH'),\n",
       " ('treatment of coal gas, in power plant',\n",
       "  'heat, district or industrial, other than natural gas',\n",
       "  'CN'),\n",
       " ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 8'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'UA'),\n",
       " ('market for brick shale', 'brick shale', 'GLO'),\n",
       " ('treatment of biogas, purification to methane 96 vol-%',\n",
       "  'methane, 96% by volume',\n",
       "  'RoW'),\n",
       " ('tree seedling production, in unheated greenhouse', 'tree seedling', 'RoW'),\n",
       " ('lath, softwood, raw, air drying',\n",
       "  'sawnwood, lath, softwood, raw, air dried',\n",
       "  'CH'),\n",
       " ('tree seedling production, in heated greenhouse', 'tree seedling', 'RER'),\n",
       " ('electricity production, lignite', 'electricity, high voltage', 'UA'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, a-Si, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'TW'),\n",
       " ('market for diesel, burned in diesel-electric generating set',\n",
       "  'diesel, burned in diesel-electric generating set',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, lath, softwood, raw, kiln dried',\n",
       "  'sawnwood, lath, softwood, raw, kiln dried',\n",
       "  'GLO'),\n",
       " ('planing, beam, hardwood, air dried',\n",
       "  'sawnwood, beam, hardwood, air dried, planed',\n",
       "  'CH'),\n",
       " ('planing, board, hardwood, air dried',\n",
       "  'shaving, hardwood, measured as dry mass',\n",
       "  'RoW')]"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "list(data_31.difference(data_33))[:100]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Official ecoinvent update list\n",
    "\n",
    "Let's look at the official ecoinvent update Excel sheet. These are provided by ecoinvent in the \"files\" section (you have to be logged in; I have changed the filenames as well).\n",
    "\n",
    "From these files, we need to get two things:\n",
    "\n",
    "1. A list of activities which have had their names or reference products changed\n",
    "2. A list of activities which have had major changes and need to be matched manually"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import os\n",
    "import pandas as pd\n",
    "import math"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### `Deleted or replaced` activities"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "overview = pd.read_excel(\"ecoinvent 3.1-3.2.xlsx\", \"overview\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['in both versions', 'new', 'deleted or replaced'], dtype=object)"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "overview['status'].unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ISIC number</th>\n",
       "      <th>ISIC class</th>\n",
       "      <th>activityName</th>\n",
       "      <th>geography</th>\n",
       "      <th>reference product</th>\n",
       "      <th>status</th>\n",
       "      <th>time period previous</th>\n",
       "      <th>time period current</th>\n",
       "      <th>new time period</th>\n",
       "      <th>Technology Level previous</th>\n",
       "      <th>Technology Level current</th>\n",
       "      <th>Technology Level updated</th>\n",
       "      <th>quantitative change</th>\n",
       "      <th>Tags current</th>\n",
       "      <th>activityName renamed</th>\n",
       "      <th>activityName previous</th>\n",
       "      <th>reference product renamed</th>\n",
       "      <th>reference product previous</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>1,1-difluoroethane production, HFC-152a</td>\n",
       "      <td>GLO</td>\n",
       "      <td>1,1-difluoroethane, HFC-152a</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2005-01-01 to 2006-12-31</td>\n",
       "      <td>2005-01-01 to 2006-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>1,1-difluoroethane production, HFC-152a</td>\n",
       "      <td>US</td>\n",
       "      <td>1,1-difluoroethane, HFC-152a</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2005-01-01 to 2006-12-31</td>\n",
       "      <td>2005-01-01 to 2006-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>20</td>\n",
       "      <td>Manufacture of chemicals and chemical products</td>\n",
       "      <td>1,1-dimethylcyclopentane to generic market for...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>1,1-dimethylcyclopentane</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>1-propanol production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>1-propanol</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1998-01-01 to 2006-12-31</td>\n",
       "      <td>1998-01-01 to 2006-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>1-propanol production</td>\n",
       "      <td>RER</td>\n",
       "      <td>1-propanol</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1998-01-01 to 2006-12-31</td>\n",
       "      <td>1998-01-01 to 2006-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>20</td>\n",
       "      <td>Manufacture of chemicals and chemical products</td>\n",
       "      <td>2,3-dimethylbutan to generic market for solven...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>2,3-dimethylbutan</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2,4-dichlorophenol production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>2,4-dichlorophenol</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2,4-dichlorophenol production</td>\n",
       "      <td>RER</td>\n",
       "      <td>2,4-dichlorophenol</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2,4-dichlorotoluene production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>2,4-dichlorotoluene</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2,4-dichlorotoluene production</td>\n",
       "      <td>RER</td>\n",
       "      <td>2,4-dichlorotoluene</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2-butanol production by hydration of butene</td>\n",
       "      <td>GLO</td>\n",
       "      <td>2-butanol</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1981-01-01 to 2005-12-31</td>\n",
       "      <td>1981-01-01 to 2005-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2-butanol production by hydration of butene</td>\n",
       "      <td>RER</td>\n",
       "      <td>2-butanol</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1981-01-01 to 2005-12-31</td>\n",
       "      <td>1981-01-01 to 2005-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2-methyl-2-butanol production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>2-methyl-2-butanol</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1989-01-01 to 2006-12-31</td>\n",
       "      <td>1989-01-01 to 2006-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2-methyl-2-butanol production</td>\n",
       "      <td>RER</td>\n",
       "      <td>2-methyl-2-butanol</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1989-01-01 to 2006-12-31</td>\n",
       "      <td>1989-01-01 to 2006-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>20</td>\n",
       "      <td>Manufacture of chemicals and chemical products</td>\n",
       "      <td>2-methylpentane to generic market for solvent,...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>2-methylpentane</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2-nitroaniline production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>2-nitroaniline</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2-nitroaniline production</td>\n",
       "      <td>RER</td>\n",
       "      <td>2-nitroaniline</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2-pyridinol production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>2-pyridinol</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>2-pyridinol production</td>\n",
       "      <td>RER</td>\n",
       "      <td>2-pyridinol</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>3-methyl-1-butyl acetate production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>3-methyl-1-butyl acetate</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1989-01-01 to 2006-12-31</td>\n",
       "      <td>1989-01-01 to 2006-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>3-methyl-1-butyl acetate production</td>\n",
       "      <td>RER</td>\n",
       "      <td>3-methyl-1-butyl acetate</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1989-01-01 to 2006-12-31</td>\n",
       "      <td>1989-01-01 to 2006-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>4-methyl-2-pentanone production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>4-methyl-2-pentanone</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1998-01-01 to 2006-12-31</td>\n",
       "      <td>1998-01-01 to 2006-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>4-methyl-2-pentanone production</td>\n",
       "      <td>RER</td>\n",
       "      <td>4-methyl-2-pentanone</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1998-01-01 to 2006-12-31</td>\n",
       "      <td>1998-01-01 to 2006-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>4-tert-butylbenzaldehyde production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>4-tert-butylbenzaldehyde</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>4-tert-butylbenzaldehyde production</td>\n",
       "      <td>RER</td>\n",
       "      <td>4-tert-butylbenzaldehyde</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>4-tert-butyltoluene production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>4-tert-butyltoluene</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>4-tert-butyltoluene production</td>\n",
       "      <td>RER</td>\n",
       "      <td>4-tert-butyltoluene</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>Brown-Schlesinger process</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sodium tetrahydridoborate</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2000-01-01 to 2006-12-31</td>\n",
       "      <td>2000-01-01 to 2006-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>DTPA production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>DTPA, diethylenetriaminepentaacetic acid</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2000-01-01 to 2000-12-31</td>\n",
       "      <td>2000-01-01 to 2000-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>DTPA production</td>\n",
       "      <td>RER</td>\n",
       "      <td>DTPA, diethylenetriaminepentaacetic acid</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2000-01-01 to 2000-12-31</td>\n",
       "      <td>2000-01-01 to 2000-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11844</th>\n",
       "      <td>0220</td>\n",
       "      <td>Logging</td>\n",
       "      <td>yarding, mobile cable yarder on trailer</td>\n",
       "      <td>GLO</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11845</th>\n",
       "      <td>0220</td>\n",
       "      <td>Logging</td>\n",
       "      <td>yarding, mobile cable yarder on trailer</td>\n",
       "      <td>RER</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11846</th>\n",
       "      <td>0220</td>\n",
       "      <td>Logging</td>\n",
       "      <td>yarding, sled yarder</td>\n",
       "      <td>GLO</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11847</th>\n",
       "      <td>0220</td>\n",
       "      <td>Logging</td>\n",
       "      <td>yarding, sled yarder</td>\n",
       "      <td>RER</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>2012-01-01 to 2012-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11848</th>\n",
       "      <td>1311</td>\n",
       "      <td>Preparation and spinning of textile fibres</td>\n",
       "      <td>yarn production, jute</td>\n",
       "      <td>GLO</td>\n",
       "      <td>yarn, jute</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2003-01-01 to 2007-12-31</td>\n",
       "      <td>2003-01-01 to 2007-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11849</th>\n",
       "      <td>1311</td>\n",
       "      <td>Preparation and spinning of textile fibres</td>\n",
       "      <td>yarn production, jute</td>\n",
       "      <td>IN</td>\n",
       "      <td>yarn, jute</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2003-01-01 to 2007-12-31</td>\n",
       "      <td>2003-01-01 to 2007-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11850</th>\n",
       "      <td>1311</td>\n",
       "      <td>Preparation and spinning of textile fibres</td>\n",
       "      <td>yarn production, kenaf</td>\n",
       "      <td>GLO</td>\n",
       "      <td>yarn, kenaf</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2003-01-01 to 2007-12-31</td>\n",
       "      <td>2003-01-01 to 2007-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11851</th>\n",
       "      <td>1311</td>\n",
       "      <td>Preparation and spinning of textile fibres</td>\n",
       "      <td>yarn production, kenaf</td>\n",
       "      <td>IN</td>\n",
       "      <td>yarn, kenaf</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2003-01-01 to 2007-12-31</td>\n",
       "      <td>2003-01-01 to 2007-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11852</th>\n",
       "      <td>1050</td>\n",
       "      <td>Manufacture of dairy products</td>\n",
       "      <td>yogurt production, from cow milk</td>\n",
       "      <td>CA-QC</td>\n",
       "      <td>yogurt, from cow milk</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2012-12-31</td>\n",
       "      <td>2010-01-01 to 2012-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11853</th>\n",
       "      <td>1050</td>\n",
       "      <td>Manufacture of dairy products</td>\n",
       "      <td>yogurt production, from cow milk</td>\n",
       "      <td>GLO</td>\n",
       "      <td>yogurt, from cow milk</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2012-12-31</td>\n",
       "      <td>2010-01-01 to 2012-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11854</th>\n",
       "      <td>2023</td>\n",
       "      <td>Manufacture of soap and detergents, cleaning a...</td>\n",
       "      <td>zeolite production, powder</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zeolite, powder</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1990-01-01 to 1995-12-31</td>\n",
       "      <td>1990-01-01 to 1995-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11855</th>\n",
       "      <td>2023</td>\n",
       "      <td>Manufacture of soap and detergents, cleaning a...</td>\n",
       "      <td>zeolite production, powder</td>\n",
       "      <td>RER</td>\n",
       "      <td>zeolite, powder</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1990-01-01 to 1995-12-31</td>\n",
       "      <td>1990-01-01 to 1995-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11856</th>\n",
       "      <td>2023</td>\n",
       "      <td>Manufacture of soap and detergents, cleaning a...</td>\n",
       "      <td>zeolite production, slurry, without water, in ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zeolite, slurry, without water, in 50% solutio...</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1990-01-01 to 1995-12-31</td>\n",
       "      <td>1990-01-01 to 1995-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11857</th>\n",
       "      <td>2023</td>\n",
       "      <td>Manufacture of soap and detergents, cleaning a...</td>\n",
       "      <td>zeolite production, slurry, without water, in ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>zeolite, slurry, without water, in 50% solutio...</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1990-01-01 to 1995-12-31</td>\n",
       "      <td>1990-01-01 to 1995-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11858</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, coils</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc coat, coils</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11859</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, coils</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc coat, coils</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11860</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, pieces</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc coat, pieces</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11861</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, pieces</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc coat, pieces</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11862</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, pieces, adjustment per micro-m</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc coat, pieces, adjustment per micro-m</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11863</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, pieces, adjustment per micro-m</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc coat, pieces, adjustment per micro-m</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>1996-01-01 to 2002-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11864</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc monosulfate production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc monosulfate</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11865</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc monosulfate production</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc monosulfate</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11866</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc oxide production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc oxide</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11867</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc oxide production</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc oxide</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11868</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc sulfide production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc sulfide</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11869</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc sulfide production</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc sulfide</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>2005-01-01 to 2007-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11870</th>\n",
       "      <td>0729</td>\n",
       "      <td>Mining of other non-ferrous metal ores</td>\n",
       "      <td>zinc-lead mine operation</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc concentrate</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>1994-01-01 to 2003-12-31</td>\n",
       "      <td>1994-01-01 to 2003-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>yes</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11871</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zirconium oxide production</td>\n",
       "      <td>AU</td>\n",
       "      <td>zirconium oxide</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2000-01-01 to 2005-12-31</td>\n",
       "      <td>2000-01-01 to 2005-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11872</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zirconium oxide production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zirconium oxide</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2000-01-01 to 2005-12-31</td>\n",
       "      <td>2000-01-01 to 2005-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>no</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11873</th>\n",
       "      <td>0113</td>\n",
       "      <td>Growing of vegetables and melons, roots and tu...</td>\n",
       "      <td>zucchini production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zucchini</td>\n",
       "      <td>in both versions</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>2010-01-01 to 2010-12-31</td>\n",
       "      <td>no</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>11874 rows × 18 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      ISIC number                                         ISIC class  \\\n",
       "0            2011                     Manufacture of basic chemicals   \n",
       "1            2011                     Manufacture of basic chemicals   \n",
       "2              20     Manufacture of chemicals and chemical products   \n",
       "3            2011                     Manufacture of basic chemicals   \n",
       "4            2011                     Manufacture of basic chemicals   \n",
       "5              20     Manufacture of chemicals and chemical products   \n",
       "6            2011                     Manufacture of basic chemicals   \n",
       "7            2011                     Manufacture of basic chemicals   \n",
       "8            2011                     Manufacture of basic chemicals   \n",
       "9            2011                     Manufacture of basic chemicals   \n",
       "10           2011                     Manufacture of basic chemicals   \n",
       "11           2011                     Manufacture of basic chemicals   \n",
       "12           2011                     Manufacture of basic chemicals   \n",
       "13           2011                     Manufacture of basic chemicals   \n",
       "14             20     Manufacture of chemicals and chemical products   \n",
       "15           2011                     Manufacture of basic chemicals   \n",
       "16           2011                     Manufacture of basic chemicals   \n",
       "17           2011                     Manufacture of basic chemicals   \n",
       "18           2011                     Manufacture of basic chemicals   \n",
       "19           2011                     Manufacture of basic chemicals   \n",
       "20           2011                     Manufacture of basic chemicals   \n",
       "21           2011                     Manufacture of basic chemicals   \n",
       "22           2011                     Manufacture of basic chemicals   \n",
       "23           2011                     Manufacture of basic chemicals   \n",
       "24           2011                     Manufacture of basic chemicals   \n",
       "25           2011                     Manufacture of basic chemicals   \n",
       "26           2011                     Manufacture of basic chemicals   \n",
       "27           2011                     Manufacture of basic chemicals   \n",
       "28           2011                     Manufacture of basic chemicals   \n",
       "29           2011                     Manufacture of basic chemicals   \n",
       "...           ...                                                ...   \n",
       "11844        0220                                            Logging   \n",
       "11845        0220                                            Logging   \n",
       "11846        0220                                            Logging   \n",
       "11847        0220                                            Logging   \n",
       "11848        1311         Preparation and spinning of textile fibres   \n",
       "11849        1311         Preparation and spinning of textile fibres   \n",
       "11850        1311         Preparation and spinning of textile fibres   \n",
       "11851        1311         Preparation and spinning of textile fibres   \n",
       "11852        1050                      Manufacture of dairy products   \n",
       "11853        1050                      Manufacture of dairy products   \n",
       "11854        2023  Manufacture of soap and detergents, cleaning a...   \n",
       "11855        2023  Manufacture of soap and detergents, cleaning a...   \n",
       "11856        2023  Manufacture of soap and detergents, cleaning a...   \n",
       "11857        2023  Manufacture of soap and detergents, cleaning a...   \n",
       "11858        2592         Treatment and coating of metals; machining   \n",
       "11859        2592         Treatment and coating of metals; machining   \n",
       "11860        2592         Treatment and coating of metals; machining   \n",
       "11861        2592         Treatment and coating of metals; machining   \n",
       "11862        2592         Treatment and coating of metals; machining   \n",
       "11863        2592         Treatment and coating of metals; machining   \n",
       "11864        2011                     Manufacture of basic chemicals   \n",
       "11865        2011                     Manufacture of basic chemicals   \n",
       "11866        2011                     Manufacture of basic chemicals   \n",
       "11867        2011                     Manufacture of basic chemicals   \n",
       "11868        2011                     Manufacture of basic chemicals   \n",
       "11869        2011                     Manufacture of basic chemicals   \n",
       "11870        0729             Mining of other non-ferrous metal ores   \n",
       "11871        2011                     Manufacture of basic chemicals   \n",
       "11872        2011                     Manufacture of basic chemicals   \n",
       "11873        0113  Growing of vegetables and melons, roots and tu...   \n",
       "\n",
       "                                            activityName geography  \\\n",
       "0                1,1-difluoroethane production, HFC-152a       GLO   \n",
       "1                1,1-difluoroethane production, HFC-152a        US   \n",
       "2      1,1-dimethylcyclopentane to generic market for...       GLO   \n",
       "3                                  1-propanol production       GLO   \n",
       "4                                  1-propanol production       RER   \n",
       "5      2,3-dimethylbutan to generic market for solven...       GLO   \n",
       "6                          2,4-dichlorophenol production       GLO   \n",
       "7                          2,4-dichlorophenol production       RER   \n",
       "8                         2,4-dichlorotoluene production       GLO   \n",
       "9                         2,4-dichlorotoluene production       RER   \n",
       "10           2-butanol production by hydration of butene       GLO   \n",
       "11           2-butanol production by hydration of butene       RER   \n",
       "12                         2-methyl-2-butanol production       GLO   \n",
       "13                         2-methyl-2-butanol production       RER   \n",
       "14     2-methylpentane to generic market for solvent,...       GLO   \n",
       "15                             2-nitroaniline production       GLO   \n",
       "16                             2-nitroaniline production       RER   \n",
       "17                                2-pyridinol production       GLO   \n",
       "18                                2-pyridinol production       RER   \n",
       "19                   3-methyl-1-butyl acetate production       GLO   \n",
       "20                   3-methyl-1-butyl acetate production       RER   \n",
       "21                       4-methyl-2-pentanone production       GLO   \n",
       "22                       4-methyl-2-pentanone production       RER   \n",
       "23                   4-tert-butylbenzaldehyde production       GLO   \n",
       "24                   4-tert-butylbenzaldehyde production       RER   \n",
       "25                        4-tert-butyltoluene production       GLO   \n",
       "26                        4-tert-butyltoluene production       RER   \n",
       "27                             Brown-Schlesinger process       GLO   \n",
       "28                                       DTPA production       GLO   \n",
       "29                                       DTPA production       RER   \n",
       "...                                                  ...       ...   \n",
       "11844            yarding, mobile cable yarder on trailer       GLO   \n",
       "11845            yarding, mobile cable yarder on trailer       RER   \n",
       "11846                               yarding, sled yarder       GLO   \n",
       "11847                               yarding, sled yarder       RER   \n",
       "11848                              yarn production, jute       GLO   \n",
       "11849                              yarn production, jute        IN   \n",
       "11850                             yarn production, kenaf       GLO   \n",
       "11851                             yarn production, kenaf        IN   \n",
       "11852                   yogurt production, from cow milk     CA-QC   \n",
       "11853                   yogurt production, from cow milk       GLO   \n",
       "11854                         zeolite production, powder       GLO   \n",
       "11855                         zeolite production, powder       RER   \n",
       "11856  zeolite production, slurry, without water, in ...       GLO   \n",
       "11857  zeolite production, slurry, without water, in ...       RER   \n",
       "11858                                zinc coating, coils       GLO   \n",
       "11859                                zinc coating, coils       RER   \n",
       "11860                               zinc coating, pieces       GLO   \n",
       "11861                               zinc coating, pieces       RER   \n",
       "11862       zinc coating, pieces, adjustment per micro-m       GLO   \n",
       "11863       zinc coating, pieces, adjustment per micro-m       RER   \n",
       "11864                        zinc monosulfate production       GLO   \n",
       "11865                        zinc monosulfate production       RER   \n",
       "11866                              zinc oxide production       GLO   \n",
       "11867                              zinc oxide production       RER   \n",
       "11868                            zinc sulfide production       GLO   \n",
       "11869                            zinc sulfide production       RER   \n",
       "11870                           zinc-lead mine operation       GLO   \n",
       "11871                         zirconium oxide production        AU   \n",
       "11872                         zirconium oxide production       GLO   \n",
       "11873                                zucchini production       GLO   \n",
       "\n",
       "                                       reference product            status  \\\n",
       "0                           1,1-difluoroethane, HFC-152a  in both versions   \n",
       "1                           1,1-difluoroethane, HFC-152a  in both versions   \n",
       "2                               1,1-dimethylcyclopentane  in both versions   \n",
       "3                                             1-propanol  in both versions   \n",
       "4                                             1-propanol  in both versions   \n",
       "5                                      2,3-dimethylbutan  in both versions   \n",
       "6                                     2,4-dichlorophenol  in both versions   \n",
       "7                                     2,4-dichlorophenol  in both versions   \n",
       "8                                    2,4-dichlorotoluene  in both versions   \n",
       "9                                    2,4-dichlorotoluene  in both versions   \n",
       "10                                             2-butanol  in both versions   \n",
       "11                                             2-butanol  in both versions   \n",
       "12                                    2-methyl-2-butanol  in both versions   \n",
       "13                                    2-methyl-2-butanol  in both versions   \n",
       "14                                       2-methylpentane  in both versions   \n",
       "15                                        2-nitroaniline  in both versions   \n",
       "16                                        2-nitroaniline  in both versions   \n",
       "17                                           2-pyridinol  in both versions   \n",
       "18                                           2-pyridinol  in both versions   \n",
       "19                              3-methyl-1-butyl acetate  in both versions   \n",
       "20                              3-methyl-1-butyl acetate  in both versions   \n",
       "21                                  4-methyl-2-pentanone  in both versions   \n",
       "22                                  4-methyl-2-pentanone  in both versions   \n",
       "23                              4-tert-butylbenzaldehyde  in both versions   \n",
       "24                              4-tert-butylbenzaldehyde  in both versions   \n",
       "25                                   4-tert-butyltoluene  in both versions   \n",
       "26                                   4-tert-butyltoluene  in both versions   \n",
       "27                             sodium tetrahydridoborate  in both versions   \n",
       "28              DTPA, diethylenetriaminepentaacetic acid  in both versions   \n",
       "29              DTPA, diethylenetriaminepentaacetic acid  in both versions   \n",
       "...                                                  ...               ...   \n",
       "11844                                      cable yarding  in both versions   \n",
       "11845                                      cable yarding  in both versions   \n",
       "11846                                      cable yarding  in both versions   \n",
       "11847                                      cable yarding  in both versions   \n",
       "11848                                         yarn, jute  in both versions   \n",
       "11849                                         yarn, jute  in both versions   \n",
       "11850                                        yarn, kenaf  in both versions   \n",
       "11851                                        yarn, kenaf  in both versions   \n",
       "11852                              yogurt, from cow milk  in both versions   \n",
       "11853                              yogurt, from cow milk  in both versions   \n",
       "11854                                    zeolite, powder  in both versions   \n",
       "11855                                    zeolite, powder  in both versions   \n",
       "11856  zeolite, slurry, without water, in 50% solutio...  in both versions   \n",
       "11857  zeolite, slurry, without water, in 50% solutio...  in both versions   \n",
       "11858                                   zinc coat, coils  in both versions   \n",
       "11859                                   zinc coat, coils  in both versions   \n",
       "11860                                  zinc coat, pieces  in both versions   \n",
       "11861                                  zinc coat, pieces  in both versions   \n",
       "11862          zinc coat, pieces, adjustment per micro-m  in both versions   \n",
       "11863          zinc coat, pieces, adjustment per micro-m  in both versions   \n",
       "11864                                   zinc monosulfate  in both versions   \n",
       "11865                                   zinc monosulfate  in both versions   \n",
       "11866                                         zinc oxide  in both versions   \n",
       "11867                                         zinc oxide  in both versions   \n",
       "11868                                       zinc sulfide  in both versions   \n",
       "11869                                       zinc sulfide  in both versions   \n",
       "11870                                   zinc concentrate  in both versions   \n",
       "11871                                    zirconium oxide  in both versions   \n",
       "11872                                    zirconium oxide  in both versions   \n",
       "11873                                           zucchini  in both versions   \n",
       "\n",
       "           time period previous       time period current new time period  \\\n",
       "0      2005-01-01 to 2006-12-31  2005-01-01 to 2006-12-31              no   \n",
       "1      2005-01-01 to 2006-12-31  2005-01-01 to 2006-12-31              no   \n",
       "2      2012-01-01 to 2012-12-31  2012-01-01 to 2012-12-31              no   \n",
       "3      1998-01-01 to 2006-12-31  1998-01-01 to 2006-12-31              no   \n",
       "4      1998-01-01 to 2006-12-31  1998-01-01 to 2006-12-31              no   \n",
       "5      2012-01-01 to 2012-12-31  2012-01-01 to 2012-12-31              no   \n",
       "6      2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "7      2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "8      2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "9      2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "10     1981-01-01 to 2005-12-31  1981-01-01 to 2005-12-31              no   \n",
       "11     1981-01-01 to 2005-12-31  1981-01-01 to 2005-12-31              no   \n",
       "12     1989-01-01 to 2006-12-31  1989-01-01 to 2006-12-31              no   \n",
       "13     1989-01-01 to 2006-12-31  1989-01-01 to 2006-12-31              no   \n",
       "14     2012-01-01 to 2012-12-31  2012-01-01 to 2012-12-31              no   \n",
       "15     2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "16     2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "17     2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "18     2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "19     1989-01-01 to 2006-12-31  1989-01-01 to 2006-12-31              no   \n",
       "20     1989-01-01 to 2006-12-31  1989-01-01 to 2006-12-31              no   \n",
       "21     1998-01-01 to 2006-12-31  1998-01-01 to 2006-12-31              no   \n",
       "22     1998-01-01 to 2006-12-31  1998-01-01 to 2006-12-31              no   \n",
       "23     2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "24     2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "25     2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "26     2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "27     2000-01-01 to 2006-12-31  2000-01-01 to 2006-12-31              no   \n",
       "28     2000-01-01 to 2000-12-31  2000-01-01 to 2000-12-31              no   \n",
       "29     2000-01-01 to 2000-12-31  2000-01-01 to 2000-12-31              no   \n",
       "...                         ...                       ...             ...   \n",
       "11844  2012-01-01 to 2012-12-31  2012-01-01 to 2012-12-31              no   \n",
       "11845  2012-01-01 to 2012-12-31  2012-01-01 to 2012-12-31              no   \n",
       "11846  2012-01-01 to 2012-12-31  2012-01-01 to 2012-12-31              no   \n",
       "11847  2012-01-01 to 2012-12-31  2012-01-01 to 2012-12-31              no   \n",
       "11848  2003-01-01 to 2007-12-31  2003-01-01 to 2007-12-31              no   \n",
       "11849  2003-01-01 to 2007-12-31  2003-01-01 to 2007-12-31              no   \n",
       "11850  2003-01-01 to 2007-12-31  2003-01-01 to 2007-12-31              no   \n",
       "11851  2003-01-01 to 2007-12-31  2003-01-01 to 2007-12-31              no   \n",
       "11852  2010-01-01 to 2012-12-31  2010-01-01 to 2012-12-31              no   \n",
       "11853  2010-01-01 to 2012-12-31  2010-01-01 to 2012-12-31              no   \n",
       "11854  1990-01-01 to 1995-12-31  1990-01-01 to 1995-12-31              no   \n",
       "11855  1990-01-01 to 1995-12-31  1990-01-01 to 1995-12-31              no   \n",
       "11856  1990-01-01 to 1995-12-31  1990-01-01 to 1995-12-31              no   \n",
       "11857  1990-01-01 to 1995-12-31  1990-01-01 to 1995-12-31              no   \n",
       "11858  1996-01-01 to 2002-12-31  1996-01-01 to 2002-12-31              no   \n",
       "11859  1996-01-01 to 2002-12-31  1996-01-01 to 2002-12-31              no   \n",
       "11860  1996-01-01 to 2002-12-31  1996-01-01 to 2002-12-31              no   \n",
       "11861  1996-01-01 to 2002-12-31  1996-01-01 to 2002-12-31              no   \n",
       "11862  1996-01-01 to 2002-12-31  1996-01-01 to 2002-12-31              no   \n",
       "11863  1996-01-01 to 2002-12-31  1996-01-01 to 2002-12-31              no   \n",
       "11864  2005-01-01 to 2007-12-31  2005-01-01 to 2007-12-31              no   \n",
       "11865  2005-01-01 to 2007-12-31  2005-01-01 to 2007-12-31              no   \n",
       "11866  2005-01-01 to 2007-12-31  2005-01-01 to 2007-12-31              no   \n",
       "11867  2005-01-01 to 2007-12-31  2005-01-01 to 2007-12-31              no   \n",
       "11868  2005-01-01 to 2007-12-31  2005-01-01 to 2007-12-31              no   \n",
       "11869  2005-01-01 to 2007-12-31  2005-01-01 to 2007-12-31              no   \n",
       "11870  1994-01-01 to 2003-12-31  1994-01-01 to 2003-12-31              no   \n",
       "11871  2000-01-01 to 2005-12-31  2000-01-01 to 2005-12-31              no   \n",
       "11872  2000-01-01 to 2005-12-31  2000-01-01 to 2005-12-31              no   \n",
       "11873  2010-01-01 to 2010-12-31  2010-01-01 to 2010-12-31              no   \n",
       "\n",
       "      Technology Level previous Technology Level current  \\\n",
       "0                       Current                  Current   \n",
       "1                       Current                  Current   \n",
       "2                       Current                  Current   \n",
       "3                       Current                  Current   \n",
       "4                       Current                  Current   \n",
       "5                       Current                  Current   \n",
       "6                       Current                  Current   \n",
       "7                       Current                  Current   \n",
       "8                       Current                  Current   \n",
       "9                       Current                  Current   \n",
       "10                      Current                  Current   \n",
       "11                      Current                  Current   \n",
       "12                      Current                  Current   \n",
       "13                      Current                  Current   \n",
       "14                      Current                  Current   \n",
       "15                      Current                  Current   \n",
       "16                      Current                  Current   \n",
       "17                      Current                  Current   \n",
       "18                      Current                  Current   \n",
       "19                      Current                  Current   \n",
       "20                      Current                  Current   \n",
       "21                      Current                  Current   \n",
       "22                      Current                  Current   \n",
       "23                      Current                  Current   \n",
       "24                      Current                  Current   \n",
       "25                      Current                  Current   \n",
       "26                      Current                  Current   \n",
       "27                      Current                  Current   \n",
       "28                      Current                  Current   \n",
       "29                      Current                  Current   \n",
       "...                         ...                      ...   \n",
       "11844                   Current                  Current   \n",
       "11845                   Current                  Current   \n",
       "11846                   Current                  Current   \n",
       "11847                   Current                  Current   \n",
       "11848                   Current                  Current   \n",
       "11849                   Current                  Current   \n",
       "11850                   Current                  Current   \n",
       "11851                   Current                  Current   \n",
       "11852                   Current                  Current   \n",
       "11853                   Current                  Current   \n",
       "11854                   Current                  Current   \n",
       "11855                   Current                  Current   \n",
       "11856                   Current                  Current   \n",
       "11857                   Current                  Current   \n",
       "11858                   Current                  Current   \n",
       "11859                   Current                  Current   \n",
       "11860                   Current                  Current   \n",
       "11861                   Current                  Current   \n",
       "11862                   Current                  Current   \n",
       "11863                   Current                  Current   \n",
       "11864                   Current                  Current   \n",
       "11865                   Current                  Current   \n",
       "11866                   Current                  Current   \n",
       "11867                   Current                  Current   \n",
       "11868                   Current                  Current   \n",
       "11869                   Current                  Current   \n",
       "11870                   Current                  Current   \n",
       "11871                   Current                  Current   \n",
       "11872                   Current                  Current   \n",
       "11873                   Current                  Current   \n",
       "\n",
       "      Technology Level updated quantitative change      Tags current  \\\n",
       "0                           no                  no  ConvertedDataset   \n",
       "1                           no                  no  ConvertedDataset   \n",
       "2                           no                  no               NaN   \n",
       "3                           no                  no  ConvertedDataset   \n",
       "4                           no                  no  ConvertedDataset   \n",
       "5                           no                  no               NaN   \n",
       "6                           no                  no               NaN   \n",
       "7                           no                  no               NaN   \n",
       "8                           no                  no               NaN   \n",
       "9                           no                  no               NaN   \n",
       "10                          no                  no  ConvertedDataset   \n",
       "11                          no                  no  ConvertedDataset   \n",
       "12                          no                  no  ConvertedDataset   \n",
       "13                          no                  no  ConvertedDataset   \n",
       "14                          no                  no               NaN   \n",
       "15                          no                  no               NaN   \n",
       "16                          no                  no               NaN   \n",
       "17                          no                  no               NaN   \n",
       "18                          no                  no               NaN   \n",
       "19                          no                  no  ConvertedDataset   \n",
       "20                          no                  no  ConvertedDataset   \n",
       "21                          no                  no  ConvertedDataset   \n",
       "22                          no                  no               NaN   \n",
       "23                          no                  no               NaN   \n",
       "24                          no                  no               NaN   \n",
       "25                          no                  no               NaN   \n",
       "26                          no                  no               NaN   \n",
       "27                          no                  no  ConvertedDataset   \n",
       "28                          no                  no  ConvertedDataset   \n",
       "29                          no                  no  ConvertedDataset   \n",
       "...                        ...                 ...               ...   \n",
       "11844                       no                  no               NaN   \n",
       "11845                       no                  no               NaN   \n",
       "11846                       no                  no               NaN   \n",
       "11847                       no                  no               NaN   \n",
       "11848                       no                  no  ConvertedDataset   \n",
       "11849                       no                  no  ConvertedDataset   \n",
       "11850                       no                  no  ConvertedDataset   \n",
       "11851                       no                  no  ConvertedDataset   \n",
       "11852                       no                  no               NaN   \n",
       "11853                       no                  no               NaN   \n",
       "11854                       no                  no  ConvertedDataset   \n",
       "11855                       no                  no  ConvertedDataset   \n",
       "11856                       no                  no  ConvertedDataset   \n",
       "11857                       no                  no  ConvertedDataset   \n",
       "11858                       no                  no  ConvertedDataset   \n",
       "11859                       no                  no  ConvertedDataset   \n",
       "11860                       no                  no  ConvertedDataset   \n",
       "11861                       no                  no  ConvertedDataset   \n",
       "11862                       no                  no  ConvertedDataset   \n",
       "11863                       no                  no  ConvertedDataset   \n",
       "11864                       no                  no  ConvertedDataset   \n",
       "11865                       no                  no  ConvertedDataset   \n",
       "11866                       no                  no  ConvertedDataset   \n",
       "11867                       no                  no  ConvertedDataset   \n",
       "11868                       no                  no  ConvertedDataset   \n",
       "11869                       no                  no  ConvertedDataset   \n",
       "11870                       no                 yes  ConvertedDataset   \n",
       "11871                       no                  no  ConvertedDataset   \n",
       "11872                       no                  no  ConvertedDataset   \n",
       "11873                       no                 yes               NaN   \n",
       "\n",
       "      activityName renamed activityName previous reference product renamed  \\\n",
       "0                       no                   NaN                        no   \n",
       "1                       no                   NaN                        no   \n",
       "2                       no                   NaN                        no   \n",
       "3                       no                   NaN                        no   \n",
       "4                       no                   NaN                        no   \n",
       "5                       no                   NaN                        no   \n",
       "6                       no                   NaN                        no   \n",
       "7                       no                   NaN                        no   \n",
       "8                       no                   NaN                        no   \n",
       "9                       no                   NaN                        no   \n",
       "10                      no                   NaN                        no   \n",
       "11                      no                   NaN                        no   \n",
       "12                      no                   NaN                        no   \n",
       "13                      no                   NaN                        no   \n",
       "14                      no                   NaN                        no   \n",
       "15                      no                   NaN                        no   \n",
       "16                      no                   NaN                        no   \n",
       "17                      no                   NaN                        no   \n",
       "18                      no                   NaN                        no   \n",
       "19                      no                   NaN                        no   \n",
       "20                      no                   NaN                        no   \n",
       "21                      no                   NaN                        no   \n",
       "22                      no                   NaN                        no   \n",
       "23                      no                   NaN                        no   \n",
       "24                      no                   NaN                        no   \n",
       "25                      no                   NaN                        no   \n",
       "26                      no                   NaN                        no   \n",
       "27                      no                   NaN                        no   \n",
       "28                      no                   NaN                        no   \n",
       "29                      no                   NaN                        no   \n",
       "...                    ...                   ...                       ...   \n",
       "11844                   no                   NaN                        no   \n",
       "11845                   no                   NaN                        no   \n",
       "11846                   no                   NaN                        no   \n",
       "11847                   no                   NaN                        no   \n",
       "11848                   no                   NaN                        no   \n",
       "11849                   no                   NaN                        no   \n",
       "11850                   no                   NaN                        no   \n",
       "11851                   no                   NaN                        no   \n",
       "11852                   no                   NaN                        no   \n",
       "11853                   no                   NaN                        no   \n",
       "11854                   no                   NaN                        no   \n",
       "11855                   no                   NaN                        no   \n",
       "11856                   no                   NaN                        no   \n",
       "11857                   no                   NaN                        no   \n",
       "11858                   no                   NaN                        no   \n",
       "11859                   no                   NaN                        no   \n",
       "11860                   no                   NaN                        no   \n",
       "11861                   no                   NaN                        no   \n",
       "11862                   no                   NaN                        no   \n",
       "11863                   no                   NaN                        no   \n",
       "11864                   no                   NaN                        no   \n",
       "11865                   no                   NaN                        no   \n",
       "11866                   no                   NaN                        no   \n",
       "11867                   no                   NaN                        no   \n",
       "11868                   no                   NaN                        no   \n",
       "11869                   no                   NaN                        no   \n",
       "11870                   no                   NaN                        no   \n",
       "11871                   no                   NaN                        no   \n",
       "11872                   no                   NaN                        no   \n",
       "11873                   no                   NaN                        no   \n",
       "\n",
       "      reference product previous  \n",
       "0                            NaN  \n",
       "1                            NaN  \n",
       "2                            NaN  \n",
       "3                            NaN  \n",
       "4                            NaN  \n",
       "5                            NaN  \n",
       "6                            NaN  \n",
       "7                            NaN  \n",
       "8                            NaN  \n",
       "9                            NaN  \n",
       "10                           NaN  \n",
       "11                           NaN  \n",
       "12                           NaN  \n",
       "13                           NaN  \n",
       "14                           NaN  \n",
       "15                           NaN  \n",
       "16                           NaN  \n",
       "17                           NaN  \n",
       "18                           NaN  \n",
       "19                           NaN  \n",
       "20                           NaN  \n",
       "21                           NaN  \n",
       "22                           NaN  \n",
       "23                           NaN  \n",
       "24                           NaN  \n",
       "25                           NaN  \n",
       "26                           NaN  \n",
       "27                           NaN  \n",
       "28                           NaN  \n",
       "29                           NaN  \n",
       "...                          ...  \n",
       "11844                        NaN  \n",
       "11845                        NaN  \n",
       "11846                        NaN  \n",
       "11847                        NaN  \n",
       "11848                        NaN  \n",
       "11849                        NaN  \n",
       "11850                        NaN  \n",
       "11851                        NaN  \n",
       "11852                        NaN  \n",
       "11853                        NaN  \n",
       "11854                        NaN  \n",
       "11855                        NaN  \n",
       "11856                        NaN  \n",
       "11857                        NaN  \n",
       "11858                        NaN  \n",
       "11859                        NaN  \n",
       "11860                        NaN  \n",
       "11861                        NaN  \n",
       "11862                        NaN  \n",
       "11863                        NaN  \n",
       "11864                        NaN  \n",
       "11865                        NaN  \n",
       "11866                        NaN  \n",
       "11867                        NaN  \n",
       "11868                        NaN  \n",
       "11869                        NaN  \n",
       "11870                        NaN  \n",
       "11871                        NaN  \n",
       "11872                        NaN  \n",
       "11873                        NaN  \n",
       "\n",
       "[11874 rows x 18 columns]"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "overview"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Let's get a list of the activities which were renamed, but are otherwise not substantially changed. This will be from 3.1 to 3.2; we will need to combine this with the changes from 3.2 to 3.3."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "172"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "renamed_mask = (overview['reference product renamed'] == 'yes') | (overview['activityName renamed'] == 'yes')\n",
    "renamed_mask.sum()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Construct dictionary mapping names, reference products, and locations.\n",
    "\n",
    "Need to be clever and handle `NaN` in some places where the reference product or activity name didn't change.\n",
    "\n",
    "Also, change 'GLO' to 'RoW' where needed.\n",
    "\n",
    "Will drop renamings (forcing a manual correction) if the 3.2 activity is not also in 3.3."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "renamed_31_33 = {}\n",
    "\n",
    "for _, row in overview[renamed_mask].iterrows():\n",
    "    value = [row['activityName'], row['reference product'], row['geography']]\n",
    "\n",
    "    if isinstance(row['activityName previous'], str):\n",
    "        old_name = row['activityName previous']\n",
    "    else:\n",
    "        old_name = row['activityName']\n",
    "    if isinstance(row['reference product previous'], str):\n",
    "        old_rp = row['reference product previous']\n",
    "    else:\n",
    "        old_rp = row['reference product']\n",
    "    key = [old_name, old_rp, row['geography']]\n",
    "    \n",
    "    if tuple(key) not in data_31 and key[2] == 'GLO':\n",
    "        key[2] = 'RoW'\n",
    "    if tuple(value) not in data_33 and value[2] == 'GLO':\n",
    "        value[2] = 'RoW'\n",
    "    \n",
    "    if tuple(key) in data_31 and tuple(value) in data_33:\n",
    "        renamed_31_33[tuple(key)] = tuple(value)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{('beam, hardwood, raw, air drying',\n",
       "  'sawnwood, beam, hardwood, raw, air dried',\n",
       "  'CH'): ('beam, hardwood, raw, air drying to u=20%',\n",
       "  'sawnwood, beam, hardwood, raw, dried (u=20%)',\n",
       "  'CH'),\n",
       " ('beam, hardwood, raw, air drying',\n",
       "  'sawnwood, beam, hardwood, raw, air dried',\n",
       "  'RoW'): ('beam, hardwood, raw, air drying to u=20%',\n",
       "  'sawnwood, beam, hardwood, raw, dried (u=20%)',\n",
       "  'RoW'),\n",
       " ('beam, hardwood, raw, kiln drying',\n",
       "  'sawnwood, beam, hardwood, raw, kiln dried',\n",
       "  'CH'): ('beam, hardwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, beam, hardwood, raw, dried (u=10%)',\n",
       "  'CH'),\n",
       " ('beam, hardwood, raw, kiln drying',\n",
       "  'sawnwood, beam, hardwood, raw, kiln dried',\n",
       "  'RoW'): ('beam, hardwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, beam, hardwood, raw, dried (u=10%)',\n",
       "  'RoW'),\n",
       " ('beam, softwood, raw, air drying',\n",
       "  'sawnwood, beam, softwood, raw, air dried',\n",
       "  'CH'): ('beam, softwood, raw, air drying to u=20%',\n",
       "  'sawnwood, beam, softwood, raw, dried (u=20%)',\n",
       "  'CH'),\n",
       " ('beam, softwood, raw, air drying',\n",
       "  'sawnwood, beam, softwood, raw, air dried',\n",
       "  'RoW'): ('beam, softwood, raw, air drying to u=20%',\n",
       "  'sawnwood, beam, softwood, raw, dried (u=20%)',\n",
       "  'RoW'),\n",
       " ('beam, softwood, raw, kiln drying',\n",
       "  'sawnwood, beam, softwood, raw, kiln dried',\n",
       "  'CH'): ('beam, softwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, beam, softwood, raw, dried (u=10%)',\n",
       "  'CH'),\n",
       " ('beam, softwood, raw, kiln drying',\n",
       "  'sawnwood, beam, softwood, raw, kiln dried',\n",
       "  'RoW'): ('beam, softwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, beam, softwood, raw, dried (u=10%)',\n",
       "  'RoW'),\n",
       " ('board, hardwood, raw, air drying',\n",
       "  'sawnwood, board, hardwood, raw, air dried',\n",
       "  'CH'): ('board, hardwood, raw, air drying to u=20%',\n",
       "  'sawnwood, board, hardwood, raw, dried (u=20%)',\n",
       "  'CH'),\n",
       " ('board, hardwood, raw, air drying',\n",
       "  'sawnwood, board, hardwood, raw, air dried',\n",
       "  'RoW'): ('board, hardwood, raw, air drying to u=20%',\n",
       "  'sawnwood, board, hardwood, raw, dried (u=20%)',\n",
       "  'RoW'),\n",
       " ('board, hardwood, raw, kiln drying',\n",
       "  'sawnwood, board, hardwood, raw, kiln dried',\n",
       "  'CH'): ('board, hardwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, board, hardwood, raw, dried (u=10%)',\n",
       "  'CH'),\n",
       " ('board, hardwood, raw, kiln drying',\n",
       "  'sawnwood, board, hardwood, raw, kiln dried',\n",
       "  'RoW'): ('board, hardwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, board, hardwood, raw, dried (u=10%)',\n",
       "  'RoW'),\n",
       " ('board, softwood, raw, air drying',\n",
       "  'sawnwood, board, softwood, raw, air dried',\n",
       "  'CH'): ('board, softwood, raw, air drying to u=20%',\n",
       "  'sawnwood, board, softwood, raw, dried (u=20%)',\n",
       "  'CH'),\n",
       " ('board, softwood, raw, air drying',\n",
       "  'sawnwood, board, softwood, raw, air dried',\n",
       "  'RoW'): ('board, softwood, raw, air drying to u=20%',\n",
       "  'sawnwood, board, softwood, raw, dried (u=20%)',\n",
       "  'RoW'),\n",
       " ('board, softwood, raw, kiln drying',\n",
       "  'sawnwood, board, softwood, raw, kiln dried',\n",
       "  'CH'): ('board, softwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, board, softwood, raw, dried (u=10%)',\n",
       "  'CH'),\n",
       " ('board, softwood, raw, kiln drying',\n",
       "  'sawnwood, board, softwood, raw, kiln dried',\n",
       "  'RoW'): ('board, softwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, board, softwood, raw, dried (u=10%)',\n",
       "  'RoW'),\n",
       " ('brick production', 'brick', 'RER'): ('clay brick production',\n",
       "  'clay brick',\n",
       "  'RER'),\n",
       " ('brick production', 'brick', 'RoW'): ('clay brick production',\n",
       "  'clay brick',\n",
       "  'RoW'),\n",
       " ('brick shale production', 'brick shale', 'CA-QC'): ('shale brick production',\n",
       "  'shale brick',\n",
       "  'CA-QC'),\n",
       " ('brick shale production', 'brick shale', 'RoW'): ('shale brick production',\n",
       "  'shale brick',\n",
       "  'RoW'),\n",
       " ('diesel, burned in diesel-electric generating set',\n",
       "  'diesel, burned in diesel-electric generating set',\n",
       "  'GLO'): ('diesel, burned in diesel-electric generating set, 10MW',\n",
       "  'diesel, burned in diesel-electric generating set, 10MW',\n",
       "  'GLO'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'AT'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'AT'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'BE'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'BE'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'BG'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'BG'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-AB'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-AB'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-NB'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-NB'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-NS'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-NS'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-ON'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-ON'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-PE'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-PE'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CH'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CH'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CZ'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CZ'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'DE'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'DE'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'DK'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'DK'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'ES'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'ES'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'FI'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'FI'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'FR'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'FR'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'GB'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'GB'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'HU'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'HU'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'IT'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'IT'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'JP'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'JP'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'KR'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'KR'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'LU'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'LU'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'NL'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'NL'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'NO'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'NO'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'PL'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'PL'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'PT'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'PT'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'RU'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'RU'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'RoW'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'RoW'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'SE'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'SE'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'SK'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'SK'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'TR'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'TR'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'TW'): ('electricity, from municipal waste incineration to generic market for electricity, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'TW'),\n",
       " ('lath, hardwood, raw, air drying',\n",
       "  'sawnwood, lath, hardwood, raw, air dried',\n",
       "  'CH'): ('lath, hardwood, raw, air drying to u=20%',\n",
       "  'sawnwood, lath, hardwood, raw, dried (u=20%)',\n",
       "  'CH'),\n",
       " ('lath, hardwood, raw, air drying',\n",
       "  'sawnwood, lath, hardwood, raw, air dried',\n",
       "  'RoW'): ('lath, hardwood, raw, air drying to u=20%',\n",
       "  'sawnwood, lath, hardwood, raw, dried (u=20%)',\n",
       "  'RoW'),\n",
       " ('lath, hardwood, raw, kiln drying',\n",
       "  'sawnwood, lath, hardwood, raw, kiln dried',\n",
       "  'CH'): ('lath, hardwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, lath, hardwood, raw, dried (u=10%)',\n",
       "  'CH'),\n",
       " ('lath, hardwood, raw, kiln drying',\n",
       "  'sawnwood, lath, hardwood, raw, kiln dried',\n",
       "  'RoW'): ('lath, hardwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, lath, hardwood, raw, dried (u=10%)',\n",
       "  'RoW'),\n",
       " ('lath, softwood, raw, air drying',\n",
       "  'sawnwood, lath, softwood, raw, air dried',\n",
       "  'CH'): ('lath, softwood, raw, air drying to u=20%',\n",
       "  'sawnwood, lath, softwood, raw, dried (u=20%)',\n",
       "  'CH'),\n",
       " ('lath, softwood, raw, air drying',\n",
       "  'sawnwood, lath, softwood, raw, air dried',\n",
       "  'RoW'): ('lath, softwood, raw, air drying to u=20%',\n",
       "  'sawnwood, lath, softwood, raw, dried (u=20%)',\n",
       "  'RoW'),\n",
       " ('lath, softwood, raw, kiln drying',\n",
       "  'sawnwood, lath, softwood, raw, kiln dried',\n",
       "  'CH'): ('lath, softwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, lath, softwood, raw, dried (u=10%)',\n",
       "  'CH'),\n",
       " ('lath, softwood, raw, kiln drying',\n",
       "  'sawnwood, lath, softwood, raw, kiln dried',\n",
       "  'RoW'): ('lath, softwood, raw, kiln drying to u=10%',\n",
       "  'sawnwood, lath, softwood, raw, dried (u=10%)',\n",
       "  'RoW'),\n",
       " ('market for brick', 'brick', 'GLO'): ('market for clay brick',\n",
       "  'clay brick',\n",
       "  'GLO'),\n",
       " ('market for brick shale', 'brick shale', 'GLO'): ('market for shale brick',\n",
       "  'shale brick',\n",
       "  'GLO'),\n",
       " ('market for diesel, burned in diesel-electric generating set',\n",
       "  'diesel, burned in diesel-electric generating set',\n",
       "  'GLO'): ('market for diesel, burned in diesel-electric generating set, 10MW',\n",
       "  'diesel, burned in diesel-electric generating set, 10MW',\n",
       "  'GLO'),\n",
       " ('market for poor concrete',\n",
       "  'poor concrete',\n",
       "  'GLO'): ('market for lean concrete', 'lean concrete', 'RoW'),\n",
       " ('market for sawnwood, beam, hardwood, air dried, planed',\n",
       "  'sawnwood, beam, hardwood, air dried, planed',\n",
       "  'GLO'): ('market for sawnwood, beam, hardwood, dried (u=20%), planed',\n",
       "  'sawnwood, beam, hardwood, dried (u=20%), planed',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, beam, hardwood, kiln dried, planed',\n",
       "  'sawnwood, beam, hardwood, kiln dried, planed',\n",
       "  'GLO'): ('market for sawnwood, beam, hardwood, dried (u=10%), planed',\n",
       "  'sawnwood, beam, hardwood, dried (u=10%), planed',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, beam, hardwood, raw, air dried',\n",
       "  'sawnwood, beam, hardwood, raw, air dried',\n",
       "  'GLO'): ('market for sawnwood, beam, hardwood, raw, dried (u=20%)',\n",
       "  'sawnwood, beam, hardwood, raw, dried (u=20%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, beam, hardwood, raw, kiln dried',\n",
       "  'sawnwood, beam, hardwood, raw, kiln dried',\n",
       "  'GLO'): ('market for sawnwood, beam, hardwood, raw, dried (u=10%)',\n",
       "  'sawnwood, beam, hardwood, raw, dried (u=10%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, beam, softwood, air dried, planed',\n",
       "  'sawnwood, beam, softwood, air dried, planed',\n",
       "  'GLO'): ('market for sawnwood, beam, softwood, dried (u=20%), planed',\n",
       "  'sawnwood, beam, softwood, dried (u=20%), planed',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, beam, softwood, kiln dried, planed',\n",
       "  'sawnwood, beam, softwood, kiln dried, planed',\n",
       "  'GLO'): ('market for sawnwood, beam, softwood, dried (u=10%), planed',\n",
       "  'sawnwood, beam, softwood, dried (u=10%), planed',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, beam, softwood, raw, air dried',\n",
       "  'sawnwood, beam, softwood, raw, air dried',\n",
       "  'GLO'): ('market for sawnwood, beam, softwood, raw, dried (u=20%)',\n",
       "  'sawnwood, beam, softwood, raw, dried (u=20%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, beam, softwood, raw, kiln dried',\n",
       "  'sawnwood, beam, softwood, raw, kiln dried',\n",
       "  'GLO'): ('market for sawnwood, beam, softwood, raw, dried (u=10%)',\n",
       "  'sawnwood, beam, softwood, raw, dried (u=10%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, board, hardwood, air dried, planed',\n",
       "  'sawnwood, board, hardwood, air dried, planed',\n",
       "  'GLO'): ('market for sawnwood, board, hardwood, dried (u=20%), planed',\n",
       "  'sawnwood, board, hardwood, dried (u=20%), planed',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, board, hardwood, kiln dried, planed',\n",
       "  'sawnwood, board, hardwood, kiln dried, planed',\n",
       "  'GLO'): ('market for sawnwood, board, hardwood, dried (u=10%), planed',\n",
       "  'sawnwood, board, hardwood, dried (u=10%), planed',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, board, hardwood, raw, air dried',\n",
       "  'sawnwood, board, hardwood, raw, air dried',\n",
       "  'GLO'): ('market for sawnwood, board, hardwood, raw, dried (u=20%)',\n",
       "  'sawnwood, board, hardwood, raw, dried (u=20%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, board, hardwood, raw, kiln dried',\n",
       "  'sawnwood, board, hardwood, raw, kiln dried',\n",
       "  'GLO'): ('market for sawnwood, board, hardwood, raw, dried (u=10%)',\n",
       "  'sawnwood, board, hardwood, raw, dried (u=10%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, board, softwood, air dried, planed',\n",
       "  'sawnwood, board, softwood, air dried, planed',\n",
       "  'GLO'): ('market for sawnwood, board, softwood, dried (u=20%), planed',\n",
       "  'sawnwood, board, softwood, dried (u=20%), planed',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, board, softwood, kiln dried, planed',\n",
       "  'sawnwood, board, softwood, kiln dried, planed',\n",
       "  'GLO'): ('market for sawnwood, board, softwood, dried (u=10%), planed',\n",
       "  'sawnwood, board, softwood, dried (u=10%), planed',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, board, softwood, raw, air dried',\n",
       "  'sawnwood, board, softwood, raw, air dried',\n",
       "  'GLO'): ('market for sawnwood, board, softwood, raw, dried (u=20%)',\n",
       "  'sawnwood, board, softwood, raw, dried (u=20%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, board, softwood, raw, kiln dried',\n",
       "  'sawnwood, board, softwood, raw, kiln dried',\n",
       "  'GLO'): ('market for sawnwood, board, softwood, raw, dried (u=10%)',\n",
       "  'sawnwood, board, softwood, raw, dried (u=10%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, hardwood, air dried, planed',\n",
       "  'sawnwood, hardwood, air dried, planed',\n",
       "  'RER'): ('market for sawnwood, hardwood, dried (u=20%), planed',\n",
       "  'sawnwood, hardwood, dried (u=20%), planed',\n",
       "  'RER'),\n",
       " ('market for sawnwood, hardwood, air dried, planed',\n",
       "  'sawnwood, hardwood, air dried, planed',\n",
       "  'RoW'): ('market for sawnwood, hardwood, dried (u=20%), planed',\n",
       "  'sawnwood, hardwood, dried (u=20%), planed',\n",
       "  'RoW'),\n",
       " ('market for sawnwood, hardwood, kiln dried, planed',\n",
       "  'sawnwood, hardwood, kiln dried, planed',\n",
       "  'RER'): ('market for sawnwood, hardwood, dried (u=10%), planed',\n",
       "  'sawnwood, hardwood, dried (u=10%), planed',\n",
       "  'RER'),\n",
       " ('market for sawnwood, hardwood, kiln dried, planed',\n",
       "  'sawnwood, hardwood, kiln dried, planed',\n",
       "  'RoW'): ('market for sawnwood, hardwood, dried (u=10%), planed',\n",
       "  'sawnwood, hardwood, dried (u=10%), planed',\n",
       "  'RoW'),\n",
       " ('market for sawnwood, hardwood, raw, air dried',\n",
       "  'sawnwood, hardwood, raw, air dried',\n",
       "  'RER'): ('market for sawnwood, hardwood, raw, dried (u=20%)',\n",
       "  'sawnwood, hardwood, raw, dried (u=20%)',\n",
       "  'RER'),\n",
       " ('market for sawnwood, hardwood, raw, air dried',\n",
       "  'sawnwood, hardwood, raw, air dried',\n",
       "  'RoW'): ('market for sawnwood, hardwood, raw, dried (u=20%)',\n",
       "  'sawnwood, hardwood, raw, dried (u=20%)',\n",
       "  'RoW'),\n",
       " ('market for sawnwood, hardwood, raw, debarked',\n",
       "  'sawnwood, hardwood, raw, debarked',\n",
       "  'RoW'): ('market for sawnwood, hardwood, raw',\n",
       "  'sawnwood, hardwood, raw',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, hardwood, raw, kiln dried',\n",
       "  'sawnwood, hardwood, raw, kiln dried',\n",
       "  'RER'): ('market for sawnwood, hardwood, raw, dried (u=10%)',\n",
       "  'sawnwood, hardwood, raw, dried (u=10%)',\n",
       "  'RER'),\n",
       " ('market for sawnwood, hardwood, raw, kiln dried',\n",
       "  'sawnwood, hardwood, raw, kiln dried',\n",
       "  'RoW'): ('market for sawnwood, hardwood, raw, dried (u=10%)',\n",
       "  'sawnwood, hardwood, raw, dried (u=10%)',\n",
       "  'RoW'),\n",
       " ('market for sawnwood, lath, hardwood, raw, air dried',\n",
       "  'sawnwood, lath, hardwood, raw, air dried',\n",
       "  'GLO'): ('market for sawnwood, lath, hardwood, raw, dried (u=20%)',\n",
       "  'sawnwood, lath, hardwood, raw, dried (u=20%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, lath, hardwood, raw, kiln dried',\n",
       "  'sawnwood, lath, hardwood, raw, kiln dried',\n",
       "  'GLO'): ('market for sawnwood, lath, hardwood, raw, dried (u=10%)',\n",
       "  'sawnwood, lath, hardwood, raw, dried (u=10%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, lath, softwood, raw, air dried',\n",
       "  'sawnwood, lath, softwood, raw, air dried',\n",
       "  'GLO'): ('market for sawnwood, lath, softwood, raw, dried (u=20%)',\n",
       "  'sawnwood, lath, softwood, raw, dried (u=20%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, lath, softwood, raw, kiln dried',\n",
       "  'sawnwood, lath, softwood, raw, kiln dried',\n",
       "  'GLO'): ('market for sawnwood, lath, softwood, raw, dried (u=10%)',\n",
       "  'sawnwood, lath, softwood, raw, dried (u=10%)',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, softwood, air dried, planed',\n",
       "  'sawnwood, softwood, air dried, planed',\n",
       "  'RER'): ('market for sawnwood, softwood, dried (u=20%), planed',\n",
       "  'sawnwood, softwood, dried (u=20%), planed',\n",
       "  'RER'),\n",
       " ('market for sawnwood, softwood, air dried, planed',\n",
       "  'sawnwood, softwood, air dried, planed',\n",
       "  'RoW'): ('market for sawnwood, softwood, dried (u=20%), planed',\n",
       "  'sawnwood, softwood, dried (u=20%), planed',\n",
       "  'RoW'),\n",
       " ('market for sawnwood, softwood, kiln dried, planed',\n",
       "  'sawnwood, softwood, kiln dried, planed',\n",
       "  'RER'): ('market for sawnwood, softwood, dried (u=10%), planed',\n",
       "  'sawnwood, softwood, dried (u=10%), planed',\n",
       "  'RER'),\n",
       " ('market for sawnwood, softwood, kiln dried, planed',\n",
       "  'sawnwood, softwood, kiln dried, planed',\n",
       "  'RoW'): ('market for sawnwood, softwood, dried (u=10%), planed',\n",
       "  'sawnwood, softwood, dried (u=10%), planed',\n",
       "  'RoW'),\n",
       " ('market for sawnwood, softwood, raw, air dried',\n",
       "  'sawnwood, softwood, raw, air dried',\n",
       "  'RER'): ('market for sawnwood, softwood, raw, dried (u=20%)',\n",
       "  'sawnwood, softwood, raw, dried (u=20%)',\n",
       "  'RER'),\n",
       " ('market for sawnwood, softwood, raw, air dried',\n",
       "  'sawnwood, softwood, raw, air dried',\n",
       "  'RoW'): ('market for sawnwood, softwood, raw, dried (u=20%)',\n",
       "  'sawnwood, softwood, raw, dried (u=20%)',\n",
       "  'RoW'),\n",
       " ('market for sawnwood, softwood, raw, debarked',\n",
       "  'sawnwood, softwood, raw, debarked',\n",
       "  'GLO'): ('market for sawnwood, softwood, raw',\n",
       "  'sawnwood, softwood, raw',\n",
       "  'GLO'),\n",
       " ('market for sawnwood, softwood, raw, kiln dried',\n",
       "  'sawnwood, softwood, raw, kiln dried',\n",
       "  'RER'): ('market for sawnwood, softwood, raw, dried (u=10%)',\n",
       "  'sawnwood, softwood, raw, dried (u=10%)',\n",
       "  'RER'),\n",
       " ('market for sawnwood, softwood, raw, kiln dried',\n",
       "  'sawnwood, softwood, raw, kiln dried',\n",
       "  'RoW'): ('market for sawnwood, softwood, raw, dried (u=10%)',\n",
       "  'sawnwood, softwood, raw, dried (u=10%)',\n",
       "  'RoW'),\n",
       " ('market for shaving, hardwood, measured as dry mass',\n",
       "  'shaving, hardwood, measured as dry mass',\n",
       "  'GLO'): ('market for shavings, hardwood, measured as dry mass',\n",
       "  'shavings, hardwood, measured as dry mass',\n",
       "  'GLO'),\n",
       " ('market for shaving, softwood, measured as dry mass',\n",
       "  'shaving, softwood, measured as dry mass',\n",
       "  'GLO'): ('market for shavings, softwood, measured as dry mass',\n",
       "  'shavings, softwood, measured as dry mass',\n",
       "  'GLO'),\n",
       " ('market for transport, freight, loryy >32 metric ton, EURO6',\n",
       "  'transport, freight, loryy >32 metric ton, EURO6',\n",
       "  'GLO'): ('market for transport, freight, lorry >32 metric ton, EURO6',\n",
       "  'transport, freight, lorry >32 metric ton, EURO6',\n",
       "  'GLO'),\n",
       " ('market for wood preservation, dipping/immersion method, organic solvent-based, indoor use, occasionally wet, as a(...)_1',\n",
       "  'wood preservation, dipping/immersion method, organic solvent-based, indoor use, occasionally wet',\n",
       "  'GLO'): ('market for wood preservation, dipping/immersion method, organic solvent-based, indoor use, occasionally wet',\n",
       "  'wood preservation, dipping/immersion method, organic solvent-based, indoor use, occasionally wet',\n",
       "  'GLO'),\n",
       " ('market for wood preservation, dipping/immersion method, organic solvent-based, outdoor use, no ground contact, as(...)_2',\n",
       "  'wood preservation, dipping/immersion method, organic solvent-based, outdoor use, no ground contact',\n",
       "  'GLO'): ('market for wood preservation, dipping/immersion method, organic solvent-based, outdoor use, no ground contact',\n",
       "  'wood preservation, dipping/immersion method, organic solvent-based, outdoor use, no ground contact',\n",
       "  'GLO'),\n",
       " ('market for wood preservation, oscillating pressure method, organic salt, Cr-free, outdoor use, ground contact, as(...)_5',\n",
       "  'wood preservation, oscillating pressure method, organic salt, Cr-free, outdoor use, ground contact',\n",
       "  'GLO'): ('market for wood preservation, oscillating pressure method, organic salt, Cr-free, outdoor use, ground contact',\n",
       "  'wood preservation, oscillating pressure method, organic salt, Cr-free, outdoor use, ground contact',\n",
       "  'GLO'),\n",
       " ('market for wood preservation, spray tunnel/deluging, organic solvent-based, indoor use, occasionally wet, as amou(...)_6',\n",
       "  'wood preservation, spray tunnel/deluging, organic solvent-based, indoor use, occasionally wet',\n",
       "  'GLO'): ('market for wood preservation, spray tunnel/deluging, organic solvent-based, indoor use, occasionally wet',\n",
       "  'wood preservation, spray tunnel/deluging, organic solvent-based, indoor use, occasionally wet',\n",
       "  'GLO'),\n",
       " ('market for wood preservation, spray tunnel/deluging, organic solvent-based, outdoor use, no ground contact, as am(...)_7',\n",
       "  'wood preservation, spray tunnel/deluging, organic solvent-based, outdoor use, no ground contact',\n",
       "  'GLO'): ('market for wood preservation, spray tunnel/deluging, organic solvent-based, outdoor use, no ground contact',\n",
       "  'wood preservation, spray tunnel/deluging, organic solvent-based, outdoor use, no ground contact',\n",
       "  'GLO'),\n",
       " ('market for wood preservation, vaccum pressure method, inorganic salt, containing Cr, outdoor use, ground contact,(...)_4',\n",
       "  'wood preservation, vaccum pressure method, inorganic salt, containing Cr, outdoor use, ground contact',\n",
       "  'GLO'): ('market for wood preservation, vaccum pressure method, inorganic salt, containing Cr, outdoor use, ground contact',\n",
       "  'wood preservation, vaccum pressure method, inorganic salt, containing Cr, outdoor use, ground contact',\n",
       "  'GLO'),\n",
       " ('market for wood preservation, vacuum pressure method, organic salts, Cr-free, outdoor use, ground contact, as amo(...)_3',\n",
       "  'wood preservation, vacuum pressure method, organic salts, Cr-free, outdoor use, ground contact',\n",
       "  'GLO'): ('market for wood preservation, vacuum pressure method, organic salts, Cr-free, outdoor use, ground contact',\n",
       "  'wood preservation, vacuum pressure method, organic salts, Cr-free, outdoor use, ground contact',\n",
       "  'GLO'),\n",
       " ('planing, beam, hardwood, air dried',\n",
       "  'sawnwood, beam, hardwood, air dried, planed',\n",
       "  'CH'): ('planing, beam, hardwood, u=20%',\n",
       "  'sawnwood, beam, hardwood, dried (u=20%), planed',\n",
       "  'CH'),\n",
       " ('planing, beam, hardwood, air dried',\n",
       "  'sawnwood, beam, hardwood, air dried, planed',\n",
       "  'RoW'): ('planing, beam, hardwood, u=20%',\n",
       "  'sawnwood, beam, hardwood, dried (u=20%), planed',\n",
       "  'RoW'),\n",
       " ('planing, beam, hardwood, kiln dried',\n",
       "  'sawnwood, beam, hardwood, kiln dried, planed',\n",
       "  'CH'): ('planing, beam, hardwood, u=10%',\n",
       "  'sawnwood, beam, hardwood, dried (u=10%), planed',\n",
       "  'CH'),\n",
       " ('planing, beam, hardwood, kiln dried',\n",
       "  'sawnwood, beam, hardwood, kiln dried, planed',\n",
       "  'RoW'): ('planing, beam, hardwood, u=10%',\n",
       "  'sawnwood, beam, hardwood, dried (u=10%), planed',\n",
       "  'RoW'),\n",
       " ('planing, beam, softwood, air dried',\n",
       "  'sawnwood, beam, softwood, air dried, planed',\n",
       "  'CH'): ('planing, beam, softwood, u=20%',\n",
       "  'sawnwood, beam, softwood, dried (u=20%), planed',\n",
       "  'CH'),\n",
       " ('planing, beam, softwood, air dried',\n",
       "  'sawnwood, beam, softwood, air dried, planed',\n",
       "  'RoW'): ('planing, beam, softwood, u=20%',\n",
       "  'sawnwood, beam, softwood, dried (u=20%), planed',\n",
       "  'RoW'),\n",
       " ('planing, beam, softwood, kiln dried',\n",
       "  'sawnwood, beam, softwood, kiln dried, planed',\n",
       "  'CH'): ('planing, beam, softwood, u=10%',\n",
       "  'sawnwood, beam, softwood, dried (u=10%), planed',\n",
       "  'CH'),\n",
       " ('planing, beam, softwood, kiln dried',\n",
       "  'sawnwood, beam, softwood, kiln dried, planed',\n",
       "  'RoW'): ('planing, beam, softwood, u=10%',\n",
       "  'sawnwood, beam, softwood, dried (u=10%), planed',\n",
       "  'RoW'),\n",
       " ('planing, board, hardwood, air dried',\n",
       "  'sawnwood, board, hardwood, air dried, planed',\n",
       "  'CH'): ('planing, board, hardwood, u=20%',\n",
       "  'sawnwood, board, hardwood, dried (u=20%), planed',\n",
       "  'CH'),\n",
       " ('planing, board, hardwood, air dried',\n",
       "  'sawnwood, board, hardwood, air dried, planed',\n",
       "  'RoW'): ('planing, board, hardwood, u=20%',\n",
       "  'sawnwood, board, hardwood, dried (u=20%), planed',\n",
       "  'RoW'),\n",
       " ('planing, board, hardwood, kiln dried',\n",
       "  'sawnwood, board, hardwood, kiln dried, planed',\n",
       "  'CH'): ('planing, board, hardwood, u=10%',\n",
       "  'sawnwood, board, hardwood, dried (u=10%), planed',\n",
       "  'CH'),\n",
       " ('planing, board, hardwood, kiln dried',\n",
       "  'sawnwood, board, hardwood, kiln dried, planed',\n",
       "  'RoW'): ('planing, board, hardwood, u=10%',\n",
       "  'sawnwood, board, hardwood, dried (u=10%), planed',\n",
       "  'RoW'),\n",
       " ('planing, board, softwood, air dried',\n",
       "  'sawnwood, board, softwood, air dried, planed',\n",
       "  'CH'): ('planing, board, softwood, u=20%',\n",
       "  'sawnwood, board, softwood, dried (u=20%), planed',\n",
       "  'CH'),\n",
       " ('planing, board, softwood, air dried',\n",
       "  'sawnwood, board, softwood, air dried, planed',\n",
       "  'RoW'): ('planing, board, softwood, u=20%',\n",
       "  'sawnwood, board, softwood, dried (u=20%), planed',\n",
       "  'RoW'),\n",
       " ('planing, board, softwood, kiln dried',\n",
       "  'sawnwood, board, softwood, kiln dried, planed',\n",
       "  'CH'): ('planing, board, softwood, u=10%',\n",
       "  'sawnwood, board, softwood, dried (u=10%), planed',\n",
       "  'CH'),\n",
       " ('planing, board, softwood, kiln dried',\n",
       "  'sawnwood, board, softwood, kiln dried, planed',\n",
       "  'RoW'): ('planing, board, softwood, u=10%',\n",
       "  'sawnwood, board, softwood, dried (u=10%), planed',\n",
       "  'RoW'),\n",
       " ('rutile production, synthetic, 95% titanium dioxide',\n",
       "  'rutile, 95% titanium dioxide',\n",
       "  'GLO'): ('rutile production, synthetic, 95% titanium dioxide, Benelite process',\n",
       "  'rutile, 95% titanium dioxide',\n",
       "  'GLO'),\n",
       " ('sawing, hardwood',\n",
       "  'sawnwood, hardwood, raw, debarked',\n",
       "  'CH'): ('sawing, hardwood', 'sawnwood, hardwood, raw', 'CH'),\n",
       " ('sawing, hardwood',\n",
       "  'sawnwood, hardwood, raw, debarked',\n",
       "  'RoW'): ('sawing, hardwood', 'sawnwood, hardwood, raw', 'RoW'),\n",
       " ('sawing, softwood',\n",
       "  'sawnwood, softwood, raw, debarked',\n",
       "  'CH'): ('sawing, softwood', 'sawnwood, softwood, raw', 'CH'),\n",
       " ('sawing, softwood',\n",
       "  'sawnwood, softwood, raw, debarked',\n",
       "  'RoW'): ('sawing, softwood', 'sawnwood, softwood, raw', 'RoW'),\n",
       " ('sawnwood production, hardwood, air dried, planed',\n",
       "  'sawnwood, hardwood, air dried, planed',\n",
       "  'RER'): ('sawnwood production, hardwood, dried (u=20%), planed',\n",
       "  'sawnwood, hardwood, dried (u=20%), planed',\n",
       "  'RER'),\n",
       " ('sawnwood production, hardwood, air dried, planed',\n",
       "  'sawnwood, hardwood, air dried, planed',\n",
       "  'RoW'): ('sawnwood production, hardwood, dried (u=20%), planed',\n",
       "  'sawnwood, hardwood, dried (u=20%), planed',\n",
       "  'RoW'),\n",
       " ('sawnwood production, hardwood, kiln dried, planed',\n",
       "  'sawnwood, hardwood, kiln dried, planed',\n",
       "  'RER'): ('sawnwood production, hardwood, dried (u=10%), planed',\n",
       "  'sawnwood, hardwood, dried (u=10%), planed',\n",
       "  'RER'),\n",
       " ('sawnwood production, hardwood, kiln dried, planed',\n",
       "  'sawnwood, hardwood, kiln dried, planed',\n",
       "  'RoW'): ('sawnwood production, hardwood, dried (u=10%), planed',\n",
       "  'sawnwood, hardwood, dried (u=10%), planed',\n",
       "  'RoW'),\n",
       " ('sawnwood production, hardwood, raw, air dried',\n",
       "  'sawnwood, hardwood, raw, air dried',\n",
       "  'RER'): ('sawnwood production, hardwood, raw, dried (u=20%)',\n",
       "  'sawnwood, hardwood, raw, dried (u=20%)',\n",
       "  'RER'),\n",
       " ('sawnwood production, hardwood, raw, air dried',\n",
       "  'sawnwood, hardwood, raw, air dried',\n",
       "  'RoW'): ('sawnwood production, hardwood, raw, dried (u=20%)',\n",
       "  'sawnwood, hardwood, raw, dried (u=20%)',\n",
       "  'RoW'),\n",
       " ('sawnwood production, hardwood, raw, kiln dried',\n",
       "  'sawnwood, hardwood, raw, kiln dried',\n",
       "  'RER'): ('sawnwood production, hardwood, raw, dried (u=10%)',\n",
       "  'sawnwood, hardwood, raw, dried (u=10%)',\n",
       "  'RER'),\n",
       " ('sawnwood production, hardwood, raw, kiln dried',\n",
       "  'sawnwood, hardwood, raw, kiln dried',\n",
       "  'RoW'): ('sawnwood production, hardwood, raw, dried (u=10%)',\n",
       "  'sawnwood, hardwood, raw, dried (u=10%)',\n",
       "  'RoW'),\n",
       " ('sawnwood production, softwood, air dried, planed',\n",
       "  'sawnwood, softwood, air dried, planed',\n",
       "  'RER'): ('sawnwood production, softwood, dried (u=20%), planed',\n",
       "  'sawnwood, softwood, dried (u=20%), planed',\n",
       "  'RER'),\n",
       " ('sawnwood production, softwood, air dried, planed',\n",
       "  'sawnwood, softwood, air dried, planed',\n",
       "  'RoW'): ('sawnwood production, softwood, dried (u=20%), planed',\n",
       "  'sawnwood, softwood, dried (u=20%), planed',\n",
       "  'RoW'),\n",
       " ('sawnwood production, softwood, kiln dried, planed',\n",
       "  'sawnwood, softwood, kiln dried, planed',\n",
       "  'RER'): ('sawnwood production, softwood, dried (u=10%), planed',\n",
       "  'sawnwood, softwood, dried (u=10%), planed',\n",
       "  'RER'),\n",
       " ('sawnwood production, softwood, kiln dried, planed',\n",
       "  'sawnwood, softwood, kiln dried, planed',\n",
       "  'RoW'): ('sawnwood production, softwood, dried (u=10%), planed',\n",
       "  'sawnwood, softwood, dried (u=10%), planed',\n",
       "  'RoW'),\n",
       " ('sawnwood production, softwood, raw, air dried',\n",
       "  'sawnwood, softwood, raw, air dried',\n",
       "  'RER'): ('sawnwood production, softwood, raw, dried (u=20%)',\n",
       "  'sawnwood, softwood, raw, dried (u=20%)',\n",
       "  'RER'),\n",
       " ('sawnwood production, softwood, raw, air dried',\n",
       "  'sawnwood, softwood, raw, air dried',\n",
       "  'RoW'): ('sawnwood production, softwood, raw, dried (u=20%)',\n",
       "  'sawnwood, softwood, raw, dried (u=20%)',\n",
       "  'RoW'),\n",
       " ('sawnwood production, softwood, raw, kiln dried',\n",
       "  'sawnwood, softwood, raw, kiln dried',\n",
       "  'RER'): ('sawnwood production, softwood, raw, dried (u=10%)',\n",
       "  'sawnwood, softwood, raw, dried (u=10%)',\n",
       "  'RER'),\n",
       " ('sawnwood production, softwood, raw, kiln dried',\n",
       "  'sawnwood, softwood, raw, kiln dried',\n",
       "  'RoW'): ('sawnwood production, softwood, raw, dried (u=10%)',\n",
       "  'sawnwood, softwood, raw, dried (u=10%)',\n",
       "  'RoW'),\n",
       " ('shaving, hardwood, measured as dry mass to generic market for residual wood, dry',\n",
       "  'residual wood, dry',\n",
       "  'GLO'): ('shavings, hardwood, measured as dry mass to generic market for residual wood, dry',\n",
       "  'residual wood, dry',\n",
       "  'GLO'),\n",
       " ('shaving, softwood, measured as dry mass to generic market for residual wood, dry',\n",
       "  'residual wood, dry',\n",
       "  'GLO'): ('shavings, softwood, measured as dry mass to generic market for residual wood, dry',\n",
       "  'residual wood, dry',\n",
       "  'GLO'),\n",
       " ('transport, freight, lorry >32 metric ton, EURO6',\n",
       "  'transport, freight, loryy >32 metric ton, EURO6',\n",
       "  'RER'): ('transport, freight, lorry >32 metric ton, EURO6',\n",
       "  'transport, freight, lorry >32 metric ton, EURO6',\n",
       "  'RER'),\n",
       " ('transport, freight, lorry >32 metric ton, EURO6',\n",
       "  'transport, freight, loryy >32 metric ton, EURO6',\n",
       "  'RoW'): ('transport, freight, lorry >32 metric ton, EURO6',\n",
       "  'transport, freight, lorry >32 metric ton, EURO6',\n",
       "  'RoW')}"
      ]
     },
     "execution_count": 43,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "renamed_31_33"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Export list of renamed activities, and missing activities\n",
    "\n",
    "Easiest to make this one big Excel sheet."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import xlsxwriter"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "workbook = xlsxwriter.Workbook('ecoinvent-31-33-migration.xlsx')\n",
    "worksheet = workbook.add_worksheet('matching')\n",
    "\n",
    "labels = [\n",
    "    \"Old name\",\n",
    "    \"Old RP\",\n",
    "    \"Old location\",\n",
    "    \"New name\",\n",
    "    \"New RP\",\n",
    "    \"New location\",\n",
    "    \"Comment\",\n",
    "]\n",
    "\n",
    "for index, label in enumerate(labels):\n",
    "    worksheet.write(0, index, label)\n",
    "\n",
    "for index, row in enumerate(sorted(data_31.difference(data_33))):\n",
    "    for col in (0, 1, 2):\n",
    "        worksheet.write(index + 1, col, row[col])\n",
    "    if row in renamed_31_33:\n",
    "        new = renamed_31_33[row]\n",
    "        for col in (0, 1, 2):\n",
    "            worksheet.write(index + 1, col + 3, new[col])\n",
    "\n",
    "workbook.close()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Export list of 3.3 activities for matching"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "workbook = xlsxwriter.Workbook('ecoinvent-33.xlsx')\n",
    "worksheet = workbook.add_worksheet('data')\n",
    "\n",
    "labels = [\n",
    "    \"Name\",\n",
    "    \"RP\",\n",
    "    \"Location\",\n",
    "]\n",
    "\n",
    "for index, label in enumerate(labels):\n",
    "    worksheet.write(0, index, label)\n",
    "\n",
    "for index, row in enumerate(sorted(data_33)):\n",
    "    for col in (0, 1, 2):\n",
    "        worksheet.write(index + 1, col, row[col])\n",
    "\n",
    "workbook.close()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Now do the same thing for ecoinvent 3.2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "overview = pd.read_excel(\"ecoinvent 3.2-3.3.xlsx\", \"overview\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "data_32 = {(ds['name'], ds['reference product'], ds['location']) for ds in Database(\"3.2 cutoff\")}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(12916, 319)"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(data_32), len(data_32.difference(data_33))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['new', 'present in both version without renaming',\n",
       "       'present in both version with renaming', 'deleted'], dtype=object)"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "overview['status'].unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ISIC number</th>\n",
       "      <th>ISIC class</th>\n",
       "      <th>activityName 3.2</th>\n",
       "      <th>geography 3.2</th>\n",
       "      <th>activityName 3.3</th>\n",
       "      <th>geography 3.3</th>\n",
       "      <th>Product 3.2</th>\n",
       "      <th>Product 3.3</th>\n",
       "      <th>Product Unit 3.2</th>\n",
       "      <th>Product Unit 3.3</th>\n",
       "      <th>...</th>\n",
       "      <th>Tags 3.3</th>\n",
       "      <th>Start 3.2</th>\n",
       "      <th>End 3.2</th>\n",
       "      <th>Start 3.3</th>\n",
       "      <th>End 3.3</th>\n",
       "      <th>Time period 3.2</th>\n",
       "      <th>Time period 3.3</th>\n",
       "      <th>Technology Level 3.2</th>\n",
       "      <th>Technology Level 3.3</th>\n",
       "      <th>change in Technology Level</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2394</td>\n",
       "      <td>Manufacture of cement, lime and plaster</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>cement, pozzolana and fly ash 36-55%,non-US to...</td>\n",
       "      <td>CH</td>\n",
       "      <td>NaN</td>\n",
       "      <td>cement, unspecified</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2013-01-01</td>\n",
       "      <td>2013-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2013 - 2013</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0161</td>\n",
       "      <td>Support activities for crop production</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>market for petrol, unleaded, burned in machinery</td>\n",
       "      <td>GLO</td>\n",
       "      <td>NaN</td>\n",
       "      <td>petrol, unleaded, burned in machinery</td>\n",
       "      <td>NaN</td>\n",
       "      <td>MJ</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2009-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2009 - 2012</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Undefined</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>68</td>\n",
       "      <td>Real estate activities</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land use change, perennial crop</td>\n",
       "      <td>US</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land use change, perennial crop</td>\n",
       "      <td>NaN</td>\n",
       "      <td>ha</td>\n",
       "      <td>...</td>\n",
       "      <td>WFLDB</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2015-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010 - 2015</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0127</td>\n",
       "      <td>Growing of beverage crops</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>coffee green bean production, robusta</td>\n",
       "      <td>IN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>coffee, green bean</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>WFLDB</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2012-01-01</td>\n",
       "      <td>2014-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2012 - 2014</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0810</td>\n",
       "      <td>Quarrying of stone, sand and clay</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>market for gravel, crushed</td>\n",
       "      <td>CH</td>\n",
       "      <td>NaN</td>\n",
       "      <td>gravel, crushed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011-01-01</td>\n",
       "      <td>2011-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011 - 2011</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Undefined</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>3822</td>\n",
       "      <td>Treatment and disposal of hazardous waste</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>market for fly ash and scrubber sludge</td>\n",
       "      <td>Europe without Switzerland</td>\n",
       "      <td>NaN</td>\n",
       "      <td>fly ash and scrubber sludge</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011-01-01</td>\n",
       "      <td>2011-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011 - 2011</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Undefined</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0127</td>\n",
       "      <td>Growing of beverage crops</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>tea production, dried</td>\n",
       "      <td>CN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>tea, dried</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>WFLDB</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2009-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2009 - 2012</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0161</td>\n",
       "      <td>Support activities for crop production</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>nutrient supply from manure, solid, cattle</td>\n",
       "      <td>GLO</td>\n",
       "      <td>NaN</td>\n",
       "      <td>nitrogen fertiliser, as N</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2009-01-01</td>\n",
       "      <td>2016-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2009 - 2016</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>2394</td>\n",
       "      <td>Manufacture of cement, lime and plaster</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>cement, alternative constituents 6-20% to gene...</td>\n",
       "      <td>Europe without Switzerland</td>\n",
       "      <td>NaN</td>\n",
       "      <td>cement, unspecified</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2013-01-01</td>\n",
       "      <td>2013-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2013 - 2013</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>0161</td>\n",
       "      <td>Support activities for crop production</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>market for establishing orchard</td>\n",
       "      <td>GLO</td>\n",
       "      <td>NaN</td>\n",
       "      <td>establishing orchard</td>\n",
       "      <td>NaN</td>\n",
       "      <td>unit</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011-01-01</td>\n",
       "      <td>2011-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011 - 2011</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Undefined</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>3821</td>\n",
       "      <td>Treatment and disposal of non-hazardous waste</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>treatment of waste polystyrene, sanitary landfill</td>\n",
       "      <td>Europe without Switzerland</td>\n",
       "      <td>NaN</td>\n",
       "      <td>waste polystyrene</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>Treatment</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1994-01-01</td>\n",
       "      <td>2000-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1994 - 2000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>0127</td>\n",
       "      <td>Growing of beverage crops</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>coffee green bean production, arabica</td>\n",
       "      <td>CO</td>\n",
       "      <td>NaN</td>\n",
       "      <td>coffee, green bean</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>WFLDB</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2012-01-01</td>\n",
       "      <td>2014-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2012 - 2014</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>3830</td>\n",
       "      <td>Materials recovery</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>treatment of waste glass sheet, sorting plant</td>\n",
       "      <td>Europe without Switzerland</td>\n",
       "      <td>NaN</td>\n",
       "      <td>waste glass sheet</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>Treatment</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1994-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1994 - 2002</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>3510</td>\n",
       "      <td>Electric power generation, transmission and di...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>electricity, high voltage, hydro, import from ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>NaN</td>\n",
       "      <td>electricity, high voltage</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kWh</td>\n",
       "      <td>...</td>\n",
       "      <td>Canada</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2014-01-01</td>\n",
       "      <td>2014-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2014 - 2014</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>3822</td>\n",
       "      <td>Treatment and disposal of hazardous waste</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>treatment of waste emulsion paint, hazardous w...</td>\n",
       "      <td>Europe without Switzerland</td>\n",
       "      <td>NaN</td>\n",
       "      <td>waste emulsion paint</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>Treatment</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1997-01-01</td>\n",
       "      <td>2000-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1997 - 2000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>0161</td>\n",
       "      <td>Support activities for crop production</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>treatment, sludge from pulp and paper producti...</td>\n",
       "      <td>Europe without Switzerland</td>\n",
       "      <td>NaN</td>\n",
       "      <td>sludge from pulp and paper production</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011 - 2012</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>2220</td>\n",
       "      <td>Manufacture of plastics products</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>horticultural fleece production</td>\n",
       "      <td>CH</td>\n",
       "      <td>NaN</td>\n",
       "      <td>horticultural fleece</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m2</td>\n",
       "      <td>...</td>\n",
       "      <td>WFLDB</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2009-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2009 - 2012</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>2394</td>\n",
       "      <td>Manufacture of cement, lime and plaster</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>cement, alternative constituents 21-35% to gen...</td>\n",
       "      <td>Europe without Switzerland</td>\n",
       "      <td>NaN</td>\n",
       "      <td>cement, unspecified</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2013-01-01</td>\n",
       "      <td>2013-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2013 - 2013</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>0125</td>\n",
       "      <td>Growing of other tree and bush fruits and nuts</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>strawberry production, in unheated greenhouse</td>\n",
       "      <td>GLO</td>\n",
       "      <td>NaN</td>\n",
       "      <td>strawberry</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>WFLDB</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2009-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2009 - 2012</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>3822</td>\n",
       "      <td>Treatment and disposal of hazardous waste</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>market for spent solvent mixture</td>\n",
       "      <td>CH</td>\n",
       "      <td>NaN</td>\n",
       "      <td>spent solvent mixture</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011-01-01</td>\n",
       "      <td>2011-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011 - 2011</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Undefined</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>3700</td>\n",
       "      <td>Sewerage</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>treatment of wastewater, average, capacity 1E9...</td>\n",
       "      <td>Europe without Switzerland</td>\n",
       "      <td>NaN</td>\n",
       "      <td>wastewater, average</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>...</td>\n",
       "      <td>Treatment</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1994-01-01</td>\n",
       "      <td>2000-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1994 - 2000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>68</td>\n",
       "      <td>Real estate activities</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land already in use, perennial cropland to ann...</td>\n",
       "      <td>CA</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land tenure, arable land, measured as carbon n...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>WFLDB</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2015-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010 - 2015</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>2394</td>\n",
       "      <td>Manufacture of cement, lime and plaster</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>cement, alternative constituents 21-35% to gen...</td>\n",
       "      <td>CH</td>\n",
       "      <td>NaN</td>\n",
       "      <td>cement, unspecified</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2013-01-01</td>\n",
       "      <td>2013-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2013 - 2013</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>3821</td>\n",
       "      <td>Treatment and disposal of non-hazardous waste</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>market for wood ash mixture, pure</td>\n",
       "      <td>Europe without Switzerland</td>\n",
       "      <td>NaN</td>\n",
       "      <td>wood ash mixture, pure</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011-01-01</td>\n",
       "      <td>2011-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2011 - 2011</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Undefined</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>68</td>\n",
       "      <td>Real estate activities</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>market for land use change, annual crop</td>\n",
       "      <td>IN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land use change, annual crop</td>\n",
       "      <td>NaN</td>\n",
       "      <td>ha</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2015-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010 - 2015</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Undefined</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>68</td>\n",
       "      <td>Real estate activities</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>clear-cutting, secondary forest to arable land...</td>\n",
       "      <td>HN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land tenure, arable land, measured as carbon n...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>WFLDB</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2015-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010 - 2015</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>68</td>\n",
       "      <td>Real estate activities</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land use change, perennial crop</td>\n",
       "      <td>FR</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land use change, perennial crop</td>\n",
       "      <td>NaN</td>\n",
       "      <td>ha</td>\n",
       "      <td>...</td>\n",
       "      <td>WFLDB</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2015-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010 - 2015</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>68</td>\n",
       "      <td>Real estate activities</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>market for land use change, annual crop</td>\n",
       "      <td>IT</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land use change, annual crop</td>\n",
       "      <td>NaN</td>\n",
       "      <td>ha</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2015-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010 - 2015</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Undefined</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>68</td>\n",
       "      <td>Real estate activities</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>market for land tenure, arable land, measured ...</td>\n",
       "      <td>NL</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land tenure, arable land, measured as carbon n...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2015-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010 - 2015</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Undefined</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>68</td>\n",
       "      <td>Real estate activities</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land already in use, perennial cropland to ann...</td>\n",
       "      <td>US</td>\n",
       "      <td>NaN</td>\n",
       "      <td>land tenure, arable land, measured as carbon n...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>WFLDB</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2015-12-31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010 - 2015</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Current</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12409</th>\n",
       "      <td>0220</td>\n",
       "      <td>Logging</td>\n",
       "      <td>yarding, mobile cable yarder on trailer</td>\n",
       "      <td>GLO</td>\n",
       "      <td>yarding, mobile cable yarder on trailer</td>\n",
       "      <td>GLO</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>hour</td>\n",
       "      <td>hour</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2012-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2012-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2012 - 2012</td>\n",
       "      <td>2012 - 2012</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12410</th>\n",
       "      <td>0220</td>\n",
       "      <td>Logging</td>\n",
       "      <td>yarding, mobile cable yarder on trailer</td>\n",
       "      <td>RER</td>\n",
       "      <td>yarding, mobile cable yarder on trailer</td>\n",
       "      <td>RER</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>hour</td>\n",
       "      <td>hour</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2012-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2012-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2012 - 2012</td>\n",
       "      <td>2012 - 2012</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12411</th>\n",
       "      <td>0220</td>\n",
       "      <td>Logging</td>\n",
       "      <td>yarding, sled yarder</td>\n",
       "      <td>GLO</td>\n",
       "      <td>yarding, sled yarder</td>\n",
       "      <td>GLO</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>hour</td>\n",
       "      <td>hour</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2012-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2012-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2012 - 2012</td>\n",
       "      <td>2012 - 2012</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12412</th>\n",
       "      <td>0220</td>\n",
       "      <td>Logging</td>\n",
       "      <td>yarding, sled yarder</td>\n",
       "      <td>RER</td>\n",
       "      <td>yarding, sled yarder</td>\n",
       "      <td>RER</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>cable yarding</td>\n",
       "      <td>hour</td>\n",
       "      <td>hour</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2012-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2012-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2012 - 2012</td>\n",
       "      <td>2012 - 2012</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12413</th>\n",
       "      <td>1311</td>\n",
       "      <td>Preparation and spinning of textile fibres</td>\n",
       "      <td>yarn production, jute</td>\n",
       "      <td>GLO</td>\n",
       "      <td>yarn production, jute</td>\n",
       "      <td>GLO</td>\n",
       "      <td>yarn, jute</td>\n",
       "      <td>yarn, jute</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2003-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2003-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2003 - 2007</td>\n",
       "      <td>2003 - 2007</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12414</th>\n",
       "      <td>1311</td>\n",
       "      <td>Preparation and spinning of textile fibres</td>\n",
       "      <td>yarn production, jute</td>\n",
       "      <td>IN</td>\n",
       "      <td>yarn production, jute</td>\n",
       "      <td>IN</td>\n",
       "      <td>yarn, jute</td>\n",
       "      <td>yarn, jute</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2003-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2003-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2003 - 2007</td>\n",
       "      <td>2003 - 2007</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12415</th>\n",
       "      <td>1311</td>\n",
       "      <td>Preparation and spinning of textile fibres</td>\n",
       "      <td>yarn production, kenaf</td>\n",
       "      <td>GLO</td>\n",
       "      <td>yarn production, kenaf</td>\n",
       "      <td>GLO</td>\n",
       "      <td>yarn, kenaf</td>\n",
       "      <td>yarn, kenaf</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2003-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2003-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2003 - 2007</td>\n",
       "      <td>2003 - 2007</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12416</th>\n",
       "      <td>1311</td>\n",
       "      <td>Preparation and spinning of textile fibres</td>\n",
       "      <td>yarn production, kenaf</td>\n",
       "      <td>IN</td>\n",
       "      <td>yarn production, kenaf</td>\n",
       "      <td>IN</td>\n",
       "      <td>yarn, kenaf</td>\n",
       "      <td>yarn, kenaf</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2003-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2003-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2003 - 2007</td>\n",
       "      <td>2003 - 2007</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12417</th>\n",
       "      <td>1050</td>\n",
       "      <td>Manufacture of dairy products</td>\n",
       "      <td>yogurt production, from cow milk</td>\n",
       "      <td>CA-QC</td>\n",
       "      <td>yogurt production, from cow milk</td>\n",
       "      <td>CA-QC</td>\n",
       "      <td>yogurt, from cow milk</td>\n",
       "      <td>yogurt, from cow milk</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2010 - 2012</td>\n",
       "      <td>2010 - 2012</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12418</th>\n",
       "      <td>1050</td>\n",
       "      <td>Manufacture of dairy products</td>\n",
       "      <td>yogurt production, from cow milk</td>\n",
       "      <td>GLO</td>\n",
       "      <td>yogurt production, from cow milk</td>\n",
       "      <td>GLO</td>\n",
       "      <td>yogurt, from cow milk</td>\n",
       "      <td>yogurt, from cow milk</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2012-12-31</td>\n",
       "      <td>2010 - 2012</td>\n",
       "      <td>2010 - 2012</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12419</th>\n",
       "      <td>2023</td>\n",
       "      <td>Manufacture of soap and detergents, cleaning a...</td>\n",
       "      <td>zeolite production, powder</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zeolite production, powder</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zeolite, powder</td>\n",
       "      <td>zeolite, powder</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>1990-01-01</td>\n",
       "      <td>1995-12-31</td>\n",
       "      <td>1990-01-01</td>\n",
       "      <td>1995-12-31</td>\n",
       "      <td>1990 - 1995</td>\n",
       "      <td>1990 - 1995</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12420</th>\n",
       "      <td>2023</td>\n",
       "      <td>Manufacture of soap and detergents, cleaning a...</td>\n",
       "      <td>zeolite production, powder</td>\n",
       "      <td>RER</td>\n",
       "      <td>zeolite production, powder</td>\n",
       "      <td>RER</td>\n",
       "      <td>zeolite, powder</td>\n",
       "      <td>zeolite, powder</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>1990-01-01</td>\n",
       "      <td>1995-12-31</td>\n",
       "      <td>1990-01-01</td>\n",
       "      <td>1995-12-31</td>\n",
       "      <td>1990 - 1995</td>\n",
       "      <td>1990 - 1995</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12421</th>\n",
       "      <td>2023</td>\n",
       "      <td>Manufacture of soap and detergents, cleaning a...</td>\n",
       "      <td>zeolite production, slurry, without water, in ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zeolite production, slurry, without water, in ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zeolite, slurry, without water, in 50% solutio...</td>\n",
       "      <td>zeolite, slurry, without water, in 50% solutio...</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>1990-01-01</td>\n",
       "      <td>1995-12-31</td>\n",
       "      <td>1990-01-01</td>\n",
       "      <td>1995-12-31</td>\n",
       "      <td>1990 - 1995</td>\n",
       "      <td>1990 - 1995</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12422</th>\n",
       "      <td>2023</td>\n",
       "      <td>Manufacture of soap and detergents, cleaning a...</td>\n",
       "      <td>zeolite production, slurry, without water, in ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>zeolite production, slurry, without water, in ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>zeolite, slurry, without water, in 50% solutio...</td>\n",
       "      <td>zeolite, slurry, without water, in 50% solutio...</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>1990-01-01</td>\n",
       "      <td>1995-12-31</td>\n",
       "      <td>1990-01-01</td>\n",
       "      <td>1995-12-31</td>\n",
       "      <td>1990 - 1995</td>\n",
       "      <td>1990 - 1995</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12423</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, coils</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc coating, coils</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc coat, coils</td>\n",
       "      <td>zinc coat, coils</td>\n",
       "      <td>m2</td>\n",
       "      <td>m2</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12424</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, coils</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc coating, coils</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc coat, coils</td>\n",
       "      <td>zinc coat, coils</td>\n",
       "      <td>m2</td>\n",
       "      <td>m2</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12425</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, pieces</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc coating, pieces</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc coat, pieces</td>\n",
       "      <td>zinc coat, pieces</td>\n",
       "      <td>m2</td>\n",
       "      <td>m2</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12426</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, pieces</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc coating, pieces</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc coat, pieces</td>\n",
       "      <td>zinc coat, pieces</td>\n",
       "      <td>m2</td>\n",
       "      <td>m2</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12427</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, pieces, adjustment per micro-m</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc coating, pieces, adjustment per micro-m</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc coat, pieces, adjustment per micro-m</td>\n",
       "      <td>zinc coat, pieces, adjustment per micro-m</td>\n",
       "      <td>m2</td>\n",
       "      <td>m2</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12428</th>\n",
       "      <td>2592</td>\n",
       "      <td>Treatment and coating of metals; machining</td>\n",
       "      <td>zinc coating, pieces, adjustment per micro-m</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc coating, pieces, adjustment per micro-m</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc coat, pieces, adjustment per micro-m</td>\n",
       "      <td>zinc coat, pieces, adjustment per micro-m</td>\n",
       "      <td>m2</td>\n",
       "      <td>m2</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996-01-01</td>\n",
       "      <td>2002-12-31</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>1996 - 2002</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12429</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc monosulfate production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc monosulfate production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc monosulfate</td>\n",
       "      <td>zinc monosulfate</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12430</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc monosulfate production</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc monosulfate production</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc monosulfate</td>\n",
       "      <td>zinc monosulfate</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12431</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc oxide production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc oxide production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc oxide</td>\n",
       "      <td>zinc oxide</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12432</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc oxide production</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc oxide production</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc oxide</td>\n",
       "      <td>zinc oxide</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12433</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc sulfide production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc sulfide production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc sulfide</td>\n",
       "      <td>zinc sulfide</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12434</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zinc sulfide production</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc sulfide production</td>\n",
       "      <td>RER</td>\n",
       "      <td>zinc sulfide</td>\n",
       "      <td>zinc sulfide</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005-01-01</td>\n",
       "      <td>2007-12-31</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>2005 - 2007</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12435</th>\n",
       "      <td>0729</td>\n",
       "      <td>Mining of other non-ferrous metal ores</td>\n",
       "      <td>zinc-lead mine operation</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc-lead mine operation</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zinc concentrate</td>\n",
       "      <td>zinc concentrate</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>1994-01-01</td>\n",
       "      <td>2003-12-31</td>\n",
       "      <td>1994-01-01</td>\n",
       "      <td>2003-12-31</td>\n",
       "      <td>1994 - 2003</td>\n",
       "      <td>1994 - 2003</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12436</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zirconium oxide production</td>\n",
       "      <td>AU</td>\n",
       "      <td>zirconium oxide production</td>\n",
       "      <td>AU</td>\n",
       "      <td>zirconium oxide</td>\n",
       "      <td>zirconium oxide</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2000-01-01</td>\n",
       "      <td>2005-12-31</td>\n",
       "      <td>2000-01-01</td>\n",
       "      <td>2005-12-31</td>\n",
       "      <td>2000 - 2005</td>\n",
       "      <td>2000 - 2005</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12437</th>\n",
       "      <td>2011</td>\n",
       "      <td>Manufacture of basic chemicals</td>\n",
       "      <td>zirconium oxide production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zirconium oxide production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zirconium oxide</td>\n",
       "      <td>zirconium oxide</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>ConvertedDataset</td>\n",
       "      <td>2000-01-01</td>\n",
       "      <td>2005-12-31</td>\n",
       "      <td>2000-01-01</td>\n",
       "      <td>2005-12-31</td>\n",
       "      <td>2000 - 2005</td>\n",
       "      <td>2000 - 2005</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12438</th>\n",
       "      <td>0113</td>\n",
       "      <td>Growing of vegetables and melons, roots and tu...</td>\n",
       "      <td>zucchini production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zucchini production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>zucchini</td>\n",
       "      <td>zucchini</td>\n",
       "      <td>kg</td>\n",
       "      <td>kg</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2010-12-31</td>\n",
       "      <td>2010-01-01</td>\n",
       "      <td>2010-12-31</td>\n",
       "      <td>2010 - 2010</td>\n",
       "      <td>2010 - 2010</td>\n",
       "      <td>Current</td>\n",
       "      <td>Current</td>\n",
       "      <td>no</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>12439 rows × 24 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      ISIC number                                         ISIC class  \\\n",
       "0            2394            Manufacture of cement, lime and plaster   \n",
       "1            0161             Support activities for crop production   \n",
       "2              68                             Real estate activities   \n",
       "3            0127                          Growing of beverage crops   \n",
       "4            0810                  Quarrying of stone, sand and clay   \n",
       "5            3822          Treatment and disposal of hazardous waste   \n",
       "6            0127                          Growing of beverage crops   \n",
       "7            0161             Support activities for crop production   \n",
       "8            2394            Manufacture of cement, lime and plaster   \n",
       "9            0161             Support activities for crop production   \n",
       "10           3821      Treatment and disposal of non-hazardous waste   \n",
       "11           0127                          Growing of beverage crops   \n",
       "12           3830                                 Materials recovery   \n",
       "13           3510  Electric power generation, transmission and di...   \n",
       "14           3822          Treatment and disposal of hazardous waste   \n",
       "15           0161             Support activities for crop production   \n",
       "16           2220                   Manufacture of plastics products   \n",
       "17           2394            Manufacture of cement, lime and plaster   \n",
       "18           0125     Growing of other tree and bush fruits and nuts   \n",
       "19           3822          Treatment and disposal of hazardous waste   \n",
       "20           3700                                           Sewerage   \n",
       "21             68                             Real estate activities   \n",
       "22           2394            Manufacture of cement, lime and plaster   \n",
       "23           3821      Treatment and disposal of non-hazardous waste   \n",
       "24             68                             Real estate activities   \n",
       "25             68                             Real estate activities   \n",
       "26             68                             Real estate activities   \n",
       "27             68                             Real estate activities   \n",
       "28             68                             Real estate activities   \n",
       "29             68                             Real estate activities   \n",
       "...           ...                                                ...   \n",
       "12409        0220                                            Logging   \n",
       "12410        0220                                            Logging   \n",
       "12411        0220                                            Logging   \n",
       "12412        0220                                            Logging   \n",
       "12413        1311         Preparation and spinning of textile fibres   \n",
       "12414        1311         Preparation and spinning of textile fibres   \n",
       "12415        1311         Preparation and spinning of textile fibres   \n",
       "12416        1311         Preparation and spinning of textile fibres   \n",
       "12417        1050                      Manufacture of dairy products   \n",
       "12418        1050                      Manufacture of dairy products   \n",
       "12419        2023  Manufacture of soap and detergents, cleaning a...   \n",
       "12420        2023  Manufacture of soap and detergents, cleaning a...   \n",
       "12421        2023  Manufacture of soap and detergents, cleaning a...   \n",
       "12422        2023  Manufacture of soap and detergents, cleaning a...   \n",
       "12423        2592         Treatment and coating of metals; machining   \n",
       "12424        2592         Treatment and coating of metals; machining   \n",
       "12425        2592         Treatment and coating of metals; machining   \n",
       "12426        2592         Treatment and coating of metals; machining   \n",
       "12427        2592         Treatment and coating of metals; machining   \n",
       "12428        2592         Treatment and coating of metals; machining   \n",
       "12429        2011                     Manufacture of basic chemicals   \n",
       "12430        2011                     Manufacture of basic chemicals   \n",
       "12431        2011                     Manufacture of basic chemicals   \n",
       "12432        2011                     Manufacture of basic chemicals   \n",
       "12433        2011                     Manufacture of basic chemicals   \n",
       "12434        2011                     Manufacture of basic chemicals   \n",
       "12435        0729             Mining of other non-ferrous metal ores   \n",
       "12436        2011                     Manufacture of basic chemicals   \n",
       "12437        2011                     Manufacture of basic chemicals   \n",
       "12438        0113  Growing of vegetables and melons, roots and tu...   \n",
       "\n",
       "                                        activityName 3.2 geography 3.2  \\\n",
       "0                                                    NaN           NaN   \n",
       "1                                                    NaN           NaN   \n",
       "2                                                    NaN           NaN   \n",
       "3                                                    NaN           NaN   \n",
       "4                                                    NaN           NaN   \n",
       "5                                                    NaN           NaN   \n",
       "6                                                    NaN           NaN   \n",
       "7                                                    NaN           NaN   \n",
       "8                                                    NaN           NaN   \n",
       "9                                                    NaN           NaN   \n",
       "10                                                   NaN           NaN   \n",
       "11                                                   NaN           NaN   \n",
       "12                                                   NaN           NaN   \n",
       "13                                                   NaN           NaN   \n",
       "14                                                   NaN           NaN   \n",
       "15                                                   NaN           NaN   \n",
       "16                                                   NaN           NaN   \n",
       "17                                                   NaN           NaN   \n",
       "18                                                   NaN           NaN   \n",
       "19                                                   NaN           NaN   \n",
       "20                                                   NaN           NaN   \n",
       "21                                                   NaN           NaN   \n",
       "22                                                   NaN           NaN   \n",
       "23                                                   NaN           NaN   \n",
       "24                                                   NaN           NaN   \n",
       "25                                                   NaN           NaN   \n",
       "26                                                   NaN           NaN   \n",
       "27                                                   NaN           NaN   \n",
       "28                                                   NaN           NaN   \n",
       "29                                                   NaN           NaN   \n",
       "...                                                  ...           ...   \n",
       "12409            yarding, mobile cable yarder on trailer           GLO   \n",
       "12410            yarding, mobile cable yarder on trailer           RER   \n",
       "12411                               yarding, sled yarder           GLO   \n",
       "12412                               yarding, sled yarder           RER   \n",
       "12413                              yarn production, jute           GLO   \n",
       "12414                              yarn production, jute            IN   \n",
       "12415                             yarn production, kenaf           GLO   \n",
       "12416                             yarn production, kenaf            IN   \n",
       "12417                   yogurt production, from cow milk         CA-QC   \n",
       "12418                   yogurt production, from cow milk           GLO   \n",
       "12419                         zeolite production, powder           GLO   \n",
       "12420                         zeolite production, powder           RER   \n",
       "12421  zeolite production, slurry, without water, in ...           GLO   \n",
       "12422  zeolite production, slurry, without water, in ...           RER   \n",
       "12423                                zinc coating, coils           GLO   \n",
       "12424                                zinc coating, coils           RER   \n",
       "12425                               zinc coating, pieces           GLO   \n",
       "12426                               zinc coating, pieces           RER   \n",
       "12427       zinc coating, pieces, adjustment per micro-m           GLO   \n",
       "12428       zinc coating, pieces, adjustment per micro-m           RER   \n",
       "12429                        zinc monosulfate production           GLO   \n",
       "12430                        zinc monosulfate production           RER   \n",
       "12431                              zinc oxide production           GLO   \n",
       "12432                              zinc oxide production           RER   \n",
       "12433                            zinc sulfide production           GLO   \n",
       "12434                            zinc sulfide production           RER   \n",
       "12435                           zinc-lead mine operation           GLO   \n",
       "12436                         zirconium oxide production            AU   \n",
       "12437                         zirconium oxide production           GLO   \n",
       "12438                                zucchini production           GLO   \n",
       "\n",
       "                                        activityName 3.3  \\\n",
       "0      cement, pozzolana and fly ash 36-55%,non-US to...   \n",
       "1       market for petrol, unleaded, burned in machinery   \n",
       "2                        land use change, perennial crop   \n",
       "3                  coffee green bean production, robusta   \n",
       "4                             market for gravel, crushed   \n",
       "5                 market for fly ash and scrubber sludge   \n",
       "6                                  tea production, dried   \n",
       "7             nutrient supply from manure, solid, cattle   \n",
       "8      cement, alternative constituents 6-20% to gene...   \n",
       "9                        market for establishing orchard   \n",
       "10     treatment of waste polystyrene, sanitary landfill   \n",
       "11                 coffee green bean production, arabica   \n",
       "12         treatment of waste glass sheet, sorting plant   \n",
       "13     electricity, high voltage, hydro, import from ...   \n",
       "14     treatment of waste emulsion paint, hazardous w...   \n",
       "15     treatment, sludge from pulp and paper producti...   \n",
       "16                       horticultural fleece production   \n",
       "17     cement, alternative constituents 21-35% to gen...   \n",
       "18         strawberry production, in unheated greenhouse   \n",
       "19                      market for spent solvent mixture   \n",
       "20     treatment of wastewater, average, capacity 1E9...   \n",
       "21     land already in use, perennial cropland to ann...   \n",
       "22     cement, alternative constituents 21-35% to gen...   \n",
       "23                     market for wood ash mixture, pure   \n",
       "24               market for land use change, annual crop   \n",
       "25     clear-cutting, secondary forest to arable land...   \n",
       "26                       land use change, perennial crop   \n",
       "27               market for land use change, annual crop   \n",
       "28     market for land tenure, arable land, measured ...   \n",
       "29     land already in use, perennial cropland to ann...   \n",
       "...                                                  ...   \n",
       "12409            yarding, mobile cable yarder on trailer   \n",
       "12410            yarding, mobile cable yarder on trailer   \n",
       "12411                               yarding, sled yarder   \n",
       "12412                               yarding, sled yarder   \n",
       "12413                              yarn production, jute   \n",
       "12414                              yarn production, jute   \n",
       "12415                             yarn production, kenaf   \n",
       "12416                             yarn production, kenaf   \n",
       "12417                   yogurt production, from cow milk   \n",
       "12418                   yogurt production, from cow milk   \n",
       "12419                         zeolite production, powder   \n",
       "12420                         zeolite production, powder   \n",
       "12421  zeolite production, slurry, without water, in ...   \n",
       "12422  zeolite production, slurry, without water, in ...   \n",
       "12423                                zinc coating, coils   \n",
       "12424                                zinc coating, coils   \n",
       "12425                               zinc coating, pieces   \n",
       "12426                               zinc coating, pieces   \n",
       "12427       zinc coating, pieces, adjustment per micro-m   \n",
       "12428       zinc coating, pieces, adjustment per micro-m   \n",
       "12429                        zinc monosulfate production   \n",
       "12430                        zinc monosulfate production   \n",
       "12431                              zinc oxide production   \n",
       "12432                              zinc oxide production   \n",
       "12433                            zinc sulfide production   \n",
       "12434                            zinc sulfide production   \n",
       "12435                           zinc-lead mine operation   \n",
       "12436                         zirconium oxide production   \n",
       "12437                         zirconium oxide production   \n",
       "12438                                zucchini production   \n",
       "\n",
       "                    geography 3.3  \\\n",
       "0                              CH   \n",
       "1                             GLO   \n",
       "2                              US   \n",
       "3                              IN   \n",
       "4                              CH   \n",
       "5      Europe without Switzerland   \n",
       "6                              CN   \n",
       "7                             GLO   \n",
       "8      Europe without Switzerland   \n",
       "9                             GLO   \n",
       "10     Europe without Switzerland   \n",
       "11                             CO   \n",
       "12     Europe without Switzerland   \n",
       "13                            GLO   \n",
       "14     Europe without Switzerland   \n",
       "15     Europe without Switzerland   \n",
       "16                             CH   \n",
       "17     Europe without Switzerland   \n",
       "18                            GLO   \n",
       "19                             CH   \n",
       "20     Europe without Switzerland   \n",
       "21                             CA   \n",
       "22                             CH   \n",
       "23     Europe without Switzerland   \n",
       "24                             IN   \n",
       "25                             HN   \n",
       "26                             FR   \n",
       "27                             IT   \n",
       "28                             NL   \n",
       "29                             US   \n",
       "...                           ...   \n",
       "12409                         GLO   \n",
       "12410                         RER   \n",
       "12411                         GLO   \n",
       "12412                         RER   \n",
       "12413                         GLO   \n",
       "12414                          IN   \n",
       "12415                         GLO   \n",
       "12416                          IN   \n",
       "12417                       CA-QC   \n",
       "12418                         GLO   \n",
       "12419                         GLO   \n",
       "12420                         RER   \n",
       "12421                         GLO   \n",
       "12422                         RER   \n",
       "12423                         GLO   \n",
       "12424                         RER   \n",
       "12425                         GLO   \n",
       "12426                         RER   \n",
       "12427                         GLO   \n",
       "12428                         RER   \n",
       "12429                         GLO   \n",
       "12430                         RER   \n",
       "12431                         GLO   \n",
       "12432                         RER   \n",
       "12433                         GLO   \n",
       "12434                         RER   \n",
       "12435                         GLO   \n",
       "12436                          AU   \n",
       "12437                         GLO   \n",
       "12438                         GLO   \n",
       "\n",
       "                                             Product 3.2  \\\n",
       "0                                                    NaN   \n",
       "1                                                    NaN   \n",
       "2                                                    NaN   \n",
       "3                                                    NaN   \n",
       "4                                                    NaN   \n",
       "5                                                    NaN   \n",
       "6                                                    NaN   \n",
       "7                                                    NaN   \n",
       "8                                                    NaN   \n",
       "9                                                    NaN   \n",
       "10                                                   NaN   \n",
       "11                                                   NaN   \n",
       "12                                                   NaN   \n",
       "13                                                   NaN   \n",
       "14                                                   NaN   \n",
       "15                                                   NaN   \n",
       "16                                                   NaN   \n",
       "17                                                   NaN   \n",
       "18                                                   NaN   \n",
       "19                                                   NaN   \n",
       "20                                                   NaN   \n",
       "21                                                   NaN   \n",
       "22                                                   NaN   \n",
       "23                                                   NaN   \n",
       "24                                                   NaN   \n",
       "25                                                   NaN   \n",
       "26                                                   NaN   \n",
       "27                                                   NaN   \n",
       "28                                                   NaN   \n",
       "29                                                   NaN   \n",
       "...                                                  ...   \n",
       "12409                                      cable yarding   \n",
       "12410                                      cable yarding   \n",
       "12411                                      cable yarding   \n",
       "12412                                      cable yarding   \n",
       "12413                                         yarn, jute   \n",
       "12414                                         yarn, jute   \n",
       "12415                                        yarn, kenaf   \n",
       "12416                                        yarn, kenaf   \n",
       "12417                              yogurt, from cow milk   \n",
       "12418                              yogurt, from cow milk   \n",
       "12419                                    zeolite, powder   \n",
       "12420                                    zeolite, powder   \n",
       "12421  zeolite, slurry, without water, in 50% solutio...   \n",
       "12422  zeolite, slurry, without water, in 50% solutio...   \n",
       "12423                                   zinc coat, coils   \n",
       "12424                                   zinc coat, coils   \n",
       "12425                                  zinc coat, pieces   \n",
       "12426                                  zinc coat, pieces   \n",
       "12427          zinc coat, pieces, adjustment per micro-m   \n",
       "12428          zinc coat, pieces, adjustment per micro-m   \n",
       "12429                                   zinc monosulfate   \n",
       "12430                                   zinc monosulfate   \n",
       "12431                                         zinc oxide   \n",
       "12432                                         zinc oxide   \n",
       "12433                                       zinc sulfide   \n",
       "12434                                       zinc sulfide   \n",
       "12435                                   zinc concentrate   \n",
       "12436                                    zirconium oxide   \n",
       "12437                                    zirconium oxide   \n",
       "12438                                           zucchini   \n",
       "\n",
       "                                             Product 3.3 Product Unit 3.2  \\\n",
       "0                                    cement, unspecified              NaN   \n",
       "1                  petrol, unleaded, burned in machinery              NaN   \n",
       "2                        land use change, perennial crop              NaN   \n",
       "3                                     coffee, green bean              NaN   \n",
       "4                                        gravel, crushed              NaN   \n",
       "5                            fly ash and scrubber sludge              NaN   \n",
       "6                                             tea, dried              NaN   \n",
       "7                              nitrogen fertiliser, as N              NaN   \n",
       "8                                    cement, unspecified              NaN   \n",
       "9                                   establishing orchard              NaN   \n",
       "10                                     waste polystyrene              NaN   \n",
       "11                                    coffee, green bean              NaN   \n",
       "12                                     waste glass sheet              NaN   \n",
       "13                             electricity, high voltage              NaN   \n",
       "14                                  waste emulsion paint              NaN   \n",
       "15                 sludge from pulp and paper production              NaN   \n",
       "16                                  horticultural fleece              NaN   \n",
       "17                                   cement, unspecified              NaN   \n",
       "18                                            strawberry              NaN   \n",
       "19                                 spent solvent mixture              NaN   \n",
       "20                                   wastewater, average              NaN   \n",
       "21     land tenure, arable land, measured as carbon n...              NaN   \n",
       "22                                   cement, unspecified              NaN   \n",
       "23                                wood ash mixture, pure              NaN   \n",
       "24                          land use change, annual crop              NaN   \n",
       "25     land tenure, arable land, measured as carbon n...              NaN   \n",
       "26                       land use change, perennial crop              NaN   \n",
       "27                          land use change, annual crop              NaN   \n",
       "28     land tenure, arable land, measured as carbon n...              NaN   \n",
       "29     land tenure, arable land, measured as carbon n...              NaN   \n",
       "...                                                  ...              ...   \n",
       "12409                                      cable yarding             hour   \n",
       "12410                                      cable yarding             hour   \n",
       "12411                                      cable yarding             hour   \n",
       "12412                                      cable yarding             hour   \n",
       "12413                                         yarn, jute               kg   \n",
       "12414                                         yarn, jute               kg   \n",
       "12415                                        yarn, kenaf               kg   \n",
       "12416                                        yarn, kenaf               kg   \n",
       "12417                              yogurt, from cow milk               kg   \n",
       "12418                              yogurt, from cow milk               kg   \n",
       "12419                                    zeolite, powder               kg   \n",
       "12420                                    zeolite, powder               kg   \n",
       "12421  zeolite, slurry, without water, in 50% solutio...               kg   \n",
       "12422  zeolite, slurry, without water, in 50% solutio...               kg   \n",
       "12423                                   zinc coat, coils               m2   \n",
       "12424                                   zinc coat, coils               m2   \n",
       "12425                                  zinc coat, pieces               m2   \n",
       "12426                                  zinc coat, pieces               m2   \n",
       "12427          zinc coat, pieces, adjustment per micro-m               m2   \n",
       "12428          zinc coat, pieces, adjustment per micro-m               m2   \n",
       "12429                                   zinc monosulfate               kg   \n",
       "12430                                   zinc monosulfate               kg   \n",
       "12431                                         zinc oxide               kg   \n",
       "12432                                         zinc oxide               kg   \n",
       "12433                                       zinc sulfide               kg   \n",
       "12434                                       zinc sulfide               kg   \n",
       "12435                                   zinc concentrate               kg   \n",
       "12436                                    zirconium oxide               kg   \n",
       "12437                                    zirconium oxide               kg   \n",
       "12438                                           zucchini               kg   \n",
       "\n",
       "      Product Unit 3.3            ...                      Tags 3.3  \\\n",
       "0                   kg            ...                           NaN   \n",
       "1                   MJ            ...                           NaN   \n",
       "2                   ha            ...                         WFLDB   \n",
       "3                   kg            ...                         WFLDB   \n",
       "4                   kg            ...                           NaN   \n",
       "5                   kg            ...                           NaN   \n",
       "6                   kg            ...                         WFLDB   \n",
       "7                   kg            ...                           NaN   \n",
       "8                   kg            ...                           NaN   \n",
       "9                 unit            ...                           NaN   \n",
       "10                  kg            ...                     Treatment   \n",
       "11                  kg            ...                         WFLDB   \n",
       "12                  kg            ...                     Treatment   \n",
       "13                 kWh            ...                        Canada   \n",
       "14                  kg            ...                     Treatment   \n",
       "15                  kg            ...                           NaN   \n",
       "16                  m2            ...                         WFLDB   \n",
       "17                  kg            ...                           NaN   \n",
       "18                  kg            ...                         WFLDB   \n",
       "19                  kg            ...                           NaN   \n",
       "20                  m3            ...                     Treatment   \n",
       "21                  kg            ...                         WFLDB   \n",
       "22                  kg            ...                           NaN   \n",
       "23                  kg            ...                           NaN   \n",
       "24                  ha            ...                           NaN   \n",
       "25                  kg            ...                         WFLDB   \n",
       "26                  ha            ...                         WFLDB   \n",
       "27                  ha            ...                           NaN   \n",
       "28                  kg            ...                           NaN   \n",
       "29                  kg            ...                         WFLDB   \n",
       "...                ...            ...                           ...   \n",
       "12409             hour            ...                           NaN   \n",
       "12410             hour            ...                           NaN   \n",
       "12411             hour            ...                           NaN   \n",
       "12412             hour            ...                           NaN   \n",
       "12413               kg            ...              ConvertedDataset   \n",
       "12414               kg            ...              ConvertedDataset   \n",
       "12415               kg            ...              ConvertedDataset   \n",
       "12416               kg            ...              ConvertedDataset   \n",
       "12417               kg            ...                           NaN   \n",
       "12418               kg            ...                           NaN   \n",
       "12419               kg            ...              ConvertedDataset   \n",
       "12420               kg            ...              ConvertedDataset   \n",
       "12421               kg            ...              ConvertedDataset   \n",
       "12422               kg            ...              ConvertedDataset   \n",
       "12423               m2            ...              ConvertedDataset   \n",
       "12424               m2            ...              ConvertedDataset   \n",
       "12425               m2            ...              ConvertedDataset   \n",
       "12426               m2            ...              ConvertedDataset   \n",
       "12427               m2            ...              ConvertedDataset   \n",
       "12428               m2            ...              ConvertedDataset   \n",
       "12429               kg            ...              ConvertedDataset   \n",
       "12430               kg            ...              ConvertedDataset   \n",
       "12431               kg            ...              ConvertedDataset   \n",
       "12432               kg            ...              ConvertedDataset   \n",
       "12433               kg            ...              ConvertedDataset   \n",
       "12434               kg            ...              ConvertedDataset   \n",
       "12435               kg            ...              ConvertedDataset   \n",
       "12436               kg            ...              ConvertedDataset   \n",
       "12437               kg            ...              ConvertedDataset   \n",
       "12438               kg            ...                           NaN   \n",
       "\n",
       "        Start 3.2     End 3.2   Start 3.3     End 3.3 Time period 3.2  \\\n",
       "0             NaN         NaN  2013-01-01  2013-12-31             NaN   \n",
       "1             NaN         NaN  2009-01-01  2012-12-31             NaN   \n",
       "2             NaN         NaN  2010-01-01  2015-12-31             NaN   \n",
       "3             NaN         NaN  2012-01-01  2014-12-31             NaN   \n",
       "4             NaN         NaN  2011-01-01  2011-12-31             NaN   \n",
       "5             NaN         NaN  2011-01-01  2011-12-31             NaN   \n",
       "6             NaN         NaN  2009-01-01  2012-12-31             NaN   \n",
       "7             NaN         NaN  2009-01-01  2016-12-31             NaN   \n",
       "8             NaN         NaN  2013-01-01  2013-12-31             NaN   \n",
       "9             NaN         NaN  2011-01-01  2011-12-31             NaN   \n",
       "10            NaN         NaN  1994-01-01  2000-12-31             NaN   \n",
       "11            NaN         NaN  2012-01-01  2014-12-31             NaN   \n",
       "12            NaN         NaN  1994-01-01  2002-12-31             NaN   \n",
       "13            NaN         NaN  2014-01-01  2014-12-31             NaN   \n",
       "14            NaN         NaN  1997-01-01  2000-12-31             NaN   \n",
       "15            NaN         NaN  2011-01-01  2012-12-31             NaN   \n",
       "16            NaN         NaN  2009-01-01  2012-12-31             NaN   \n",
       "17            NaN         NaN  2013-01-01  2013-12-31             NaN   \n",
       "18            NaN         NaN  2009-01-01  2012-12-31             NaN   \n",
       "19            NaN         NaN  2011-01-01  2011-12-31             NaN   \n",
       "20            NaN         NaN  1994-01-01  2000-12-31             NaN   \n",
       "21            NaN         NaN  2010-01-01  2015-12-31             NaN   \n",
       "22            NaN         NaN  2013-01-01  2013-12-31             NaN   \n",
       "23            NaN         NaN  2011-01-01  2011-12-31             NaN   \n",
       "24            NaN         NaN  2010-01-01  2015-12-31             NaN   \n",
       "25            NaN         NaN  2010-01-01  2015-12-31             NaN   \n",
       "26            NaN         NaN  2010-01-01  2015-12-31             NaN   \n",
       "27            NaN         NaN  2010-01-01  2015-12-31             NaN   \n",
       "28            NaN         NaN  2010-01-01  2015-12-31             NaN   \n",
       "29            NaN         NaN  2010-01-01  2015-12-31             NaN   \n",
       "...           ...         ...         ...         ...             ...   \n",
       "12409  2012-01-01  2012-12-31  2012-01-01  2012-12-31     2012 - 2012   \n",
       "12410  2012-01-01  2012-12-31  2012-01-01  2012-12-31     2012 - 2012   \n",
       "12411  2012-01-01  2012-12-31  2012-01-01  2012-12-31     2012 - 2012   \n",
       "12412  2012-01-01  2012-12-31  2012-01-01  2012-12-31     2012 - 2012   \n",
       "12413  2003-01-01  2007-12-31  2003-01-01  2007-12-31     2003 - 2007   \n",
       "12414  2003-01-01  2007-12-31  2003-01-01  2007-12-31     2003 - 2007   \n",
       "12415  2003-01-01  2007-12-31  2003-01-01  2007-12-31     2003 - 2007   \n",
       "12416  2003-01-01  2007-12-31  2003-01-01  2007-12-31     2003 - 2007   \n",
       "12417  2010-01-01  2012-12-31  2010-01-01  2012-12-31     2010 - 2012   \n",
       "12418  2010-01-01  2012-12-31  2010-01-01  2012-12-31     2010 - 2012   \n",
       "12419  1990-01-01  1995-12-31  1990-01-01  1995-12-31     1990 - 1995   \n",
       "12420  1990-01-01  1995-12-31  1990-01-01  1995-12-31     1990 - 1995   \n",
       "12421  1990-01-01  1995-12-31  1990-01-01  1995-12-31     1990 - 1995   \n",
       "12422  1990-01-01  1995-12-31  1990-01-01  1995-12-31     1990 - 1995   \n",
       "12423  1996-01-01  2002-12-31  1996-01-01  2002-12-31     1996 - 2002   \n",
       "12424  1996-01-01  2002-12-31  1996-01-01  2002-12-31     1996 - 2002   \n",
       "12425  1996-01-01  2002-12-31  1996-01-01  2002-12-31     1996 - 2002   \n",
       "12426  1996-01-01  2002-12-31  1996-01-01  2002-12-31     1996 - 2002   \n",
       "12427  1996-01-01  2002-12-31  1996-01-01  2002-12-31     1996 - 2002   \n",
       "12428  1996-01-01  2002-12-31  1996-01-01  2002-12-31     1996 - 2002   \n",
       "12429  2005-01-01  2007-12-31  2005-01-01  2007-12-31     2005 - 2007   \n",
       "12430  2005-01-01  2007-12-31  2005-01-01  2007-12-31     2005 - 2007   \n",
       "12431  2005-01-01  2007-12-31  2005-01-01  2007-12-31     2005 - 2007   \n",
       "12432  2005-01-01  2007-12-31  2005-01-01  2007-12-31     2005 - 2007   \n",
       "12433  2005-01-01  2007-12-31  2005-01-01  2007-12-31     2005 - 2007   \n",
       "12434  2005-01-01  2007-12-31  2005-01-01  2007-12-31     2005 - 2007   \n",
       "12435  1994-01-01  2003-12-31  1994-01-01  2003-12-31     1994 - 2003   \n",
       "12436  2000-01-01  2005-12-31  2000-01-01  2005-12-31     2000 - 2005   \n",
       "12437  2000-01-01  2005-12-31  2000-01-01  2005-12-31     2000 - 2005   \n",
       "12438  2010-01-01  2010-12-31  2010-01-01  2010-12-31     2010 - 2010   \n",
       "\n",
       "      Time period 3.3 Technology Level 3.2 Technology Level 3.3  \\\n",
       "0         2013 - 2013                  NaN              Current   \n",
       "1         2009 - 2012                  NaN            Undefined   \n",
       "2         2010 - 2015                  NaN              Current   \n",
       "3         2012 - 2014                  NaN              Current   \n",
       "4         2011 - 2011                  NaN            Undefined   \n",
       "5         2011 - 2011                  NaN            Undefined   \n",
       "6         2009 - 2012                  NaN              Current   \n",
       "7         2009 - 2016                  NaN              Current   \n",
       "8         2013 - 2013                  NaN              Current   \n",
       "9         2011 - 2011                  NaN            Undefined   \n",
       "10        1994 - 2000                  NaN              Current   \n",
       "11        2012 - 2014                  NaN              Current   \n",
       "12        1994 - 2002                  NaN              Current   \n",
       "13        2014 - 2014                  NaN              Current   \n",
       "14        1997 - 2000                  NaN              Current   \n",
       "15        2011 - 2012                  NaN              Current   \n",
       "16        2009 - 2012                  NaN              Current   \n",
       "17        2013 - 2013                  NaN              Current   \n",
       "18        2009 - 2012                  NaN              Current   \n",
       "19        2011 - 2011                  NaN            Undefined   \n",
       "20        1994 - 2000                  NaN              Current   \n",
       "21        2010 - 2015                  NaN              Current   \n",
       "22        2013 - 2013                  NaN              Current   \n",
       "23        2011 - 2011                  NaN            Undefined   \n",
       "24        2010 - 2015                  NaN            Undefined   \n",
       "25        2010 - 2015                  NaN              Current   \n",
       "26        2010 - 2015                  NaN              Current   \n",
       "27        2010 - 2015                  NaN            Undefined   \n",
       "28        2010 - 2015                  NaN            Undefined   \n",
       "29        2010 - 2015                  NaN              Current   \n",
       "...               ...                  ...                  ...   \n",
       "12409     2012 - 2012              Current              Current   \n",
       "12410     2012 - 2012              Current              Current   \n",
       "12411     2012 - 2012              Current              Current   \n",
       "12412     2012 - 2012              Current              Current   \n",
       "12413     2003 - 2007              Current              Current   \n",
       "12414     2003 - 2007              Current              Current   \n",
       "12415     2003 - 2007              Current              Current   \n",
       "12416     2003 - 2007              Current              Current   \n",
       "12417     2010 - 2012              Current              Current   \n",
       "12418     2010 - 2012              Current              Current   \n",
       "12419     1990 - 1995              Current              Current   \n",
       "12420     1990 - 1995              Current              Current   \n",
       "12421     1990 - 1995              Current              Current   \n",
       "12422     1990 - 1995              Current              Current   \n",
       "12423     1996 - 2002              Current              Current   \n",
       "12424     1996 - 2002              Current              Current   \n",
       "12425     1996 - 2002              Current              Current   \n",
       "12426     1996 - 2002              Current              Current   \n",
       "12427     1996 - 2002              Current              Current   \n",
       "12428     1996 - 2002              Current              Current   \n",
       "12429     2005 - 2007              Current              Current   \n",
       "12430     2005 - 2007              Current              Current   \n",
       "12431     2005 - 2007              Current              Current   \n",
       "12432     2005 - 2007              Current              Current   \n",
       "12433     2005 - 2007              Current              Current   \n",
       "12434     2005 - 2007              Current              Current   \n",
       "12435     1994 - 2003              Current              Current   \n",
       "12436     2000 - 2005              Current              Current   \n",
       "12437     2000 - 2005              Current              Current   \n",
       "12438     2010 - 2010              Current              Current   \n",
       "\n",
       "      change in Technology Level  \n",
       "0                            NaN  \n",
       "1                            NaN  \n",
       "2                            NaN  \n",
       "3                            NaN  \n",
       "4                            NaN  \n",
       "5                            NaN  \n",
       "6                            NaN  \n",
       "7                            NaN  \n",
       "8                            NaN  \n",
       "9                            NaN  \n",
       "10                           NaN  \n",
       "11                           NaN  \n",
       "12                           NaN  \n",
       "13                           NaN  \n",
       "14                           NaN  \n",
       "15                           NaN  \n",
       "16                           NaN  \n",
       "17                           NaN  \n",
       "18                           NaN  \n",
       "19                           NaN  \n",
       "20                           NaN  \n",
       "21                           NaN  \n",
       "22                           NaN  \n",
       "23                           NaN  \n",
       "24                           NaN  \n",
       "25                           NaN  \n",
       "26                           NaN  \n",
       "27                           NaN  \n",
       "28                           NaN  \n",
       "29                           NaN  \n",
       "...                          ...  \n",
       "12409                         no  \n",
       "12410                         no  \n",
       "12411                         no  \n",
       "12412                         no  \n",
       "12413                         no  \n",
       "12414                         no  \n",
       "12415                         no  \n",
       "12416                         no  \n",
       "12417                         no  \n",
       "12418                         no  \n",
       "12419                         no  \n",
       "12420                         no  \n",
       "12421                         no  \n",
       "12422                         no  \n",
       "12423                         no  \n",
       "12424                         no  \n",
       "12425                         no  \n",
       "12426                         no  \n",
       "12427                         no  \n",
       "12428                         no  \n",
       "12429                         no  \n",
       "12430                         no  \n",
       "12431                         no  \n",
       "12432                         no  \n",
       "12433                         no  \n",
       "12434                         no  \n",
       "12435                         no  \n",
       "12436                         no  \n",
       "12437                         no  \n",
       "12438                         no  \n",
       "\n",
       "[12439 rows x 24 columns]"
      ]
     },
     "execution_count": 53,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "overview"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "81"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "renamed_mask = overview['status'] == 'present in both version with renaming'\n",
    "renamed_mask.sum()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "renamed_32_33 = {}\n",
    "\n",
    "for _, row in overview[renamed_mask].iterrows():\n",
    "    value = (row['activityName 3.3'], row['Product 3.3'], row['geography 3.3'])\n",
    "    key = (row['activityName 3.2'], row['Product 3.2'], row['geography 3.2'])\n",
    "    \n",
    "    if key not in data_32 and key[2] == 'GLO':\n",
    "        key = (key[0], key[1], 'RoW')\n",
    "    if value not in data_33 and value[2] == 'GLO':\n",
    "        value = (value[0], value[1], 'RoW')\n",
    "    \n",
    "    if key in data_32 and value in data_33:\n",
    "        renamed_32_33[key] = value"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area 1'): ('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area, Africa'),\n",
       " ('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area 2, without Quebec'): ('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area, North America, without Quebec'),\n",
       " ('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area 3'): ('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area, South America'),\n",
       " ('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area 4&5 without China'): ('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area, Asia, without China and GCC'),\n",
       " ('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area 8'): ('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area, Gulf Cooperation Council'),\n",
       " ('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area, Europe outside EU & EFTA'): ('aluminium production, primary, ingot',\n",
       "  'aluminium, primary, ingot',\n",
       "  'IAI Area, Russia & RER w/o EU27 & EFTA'),\n",
       " ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area 1'): ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area, Africa'),\n",
       " ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area 2, without Quebec'): ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area, North America, without Quebec'),\n",
       " ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area 3'): ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area, South America'),\n",
       " ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area 4&5 without China'): ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area, Asia, without China and GCC'),\n",
       " ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area 8'): ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area, Gulf Cooperation Council'),\n",
       " ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area, Europe outside EU & EFTA'): ('aluminium production, primary, liquid, prebake',\n",
       "  'aluminium, primary, liquid',\n",
       "  'IAI Area, Russia & RER w/o EU27 & EFTA'),\n",
       " ('coconut production, husked',\n",
       "  'coconut, husked',\n",
       "  'PH'): ('coconut production, dehusked', 'coconut, dehusked', 'PH'),\n",
       " ('coconut production, husked',\n",
       "  'coconut, husked',\n",
       "  'RoW'): ('coconut production, dehusked', 'coconut, dehusked', 'RoW'),\n",
       " ('diesel-electric generating set production 10MW production',\n",
       "  'diesel-electric generating set, 10MW',\n",
       "  'RER'): ('diesel-electric generating set production, 10MW',\n",
       "  'diesel-electric generating set, 10MW',\n",
       "  'RER'),\n",
       " ('diesel-electric generating set production 10MW production',\n",
       "  'diesel-electric generating set, 10MW',\n",
       "  'RoW'): ('diesel-electric generating set production, 10MW',\n",
       "  'diesel-electric generating set, 10MW',\n",
       "  'RoW'),\n",
       " ('electricity production, coal, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 1'): ('electricity production, coal, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Africa'),\n",
       " ('electricity production, coal, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 2, without Quebec'): ('electricity production, coal, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, North America, without Quebec'),\n",
       " ('electricity production, coal, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 4&5 without China'): ('electricity production, coal, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Asia, without China and GCC'),\n",
       " ('electricity production, coal, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Europe outside EU & EFTA'): ('electricity production, coal, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Russia & RER w/o EU27 & EFTA'),\n",
       " ('electricity production, hydro, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 1'): ('electricity production, hydro, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Africa'),\n",
       " ('electricity production, hydro, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 2, without Quebec'): ('electricity production, hydro, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, North America, without Quebec'),\n",
       " ('electricity production, hydro, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 3'): ('electricity production, hydro, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, South America'),\n",
       " ('electricity production, hydro, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 4&5 without China'): ('electricity production, hydro, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Asia, without China and GCC'),\n",
       " ('electricity production, hydro, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Europe outside EU & EFTA'): ('electricity production, hydro, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Russia & RER w/o EU27 & EFTA'),\n",
       " ('electricity production, natural gas, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 2, without Quebec'): ('electricity production, natural gas, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, North America, without Quebec'),\n",
       " ('electricity production, natural gas, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 3'): ('electricity production, natural gas, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, South America'),\n",
       " ('electricity production, natural gas, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 8'): ('electricity production, natural gas, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Gulf Cooperation Council'),\n",
       " ('electricity production, nuclear, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 2, without Quebec'): ('electricity production, nuclear, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, North America, without Quebec'),\n",
       " ('electricity production, oil, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 8'): ('electricity production, oil, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Gulf Cooperation Council'),\n",
       " ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 1'): ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, Africa'),\n",
       " ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 2, without Quebec'): ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, North America, without Quebec'),\n",
       " ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 3'): ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, South America'),\n",
       " ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 4&5 without China'): ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, Asia, without China and GCC'),\n",
       " ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 8'): ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, Gulf Cooperation Council'),\n",
       " ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, Europe outside EU & EFTA'): ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, Russia & RER w/o EU27 & EFTA'),\n",
       " ('ethanol production from sugar cane',\n",
       "  'ethanol, without water, in 95% solution state, from fermentation',\n",
       "  'BR'): ('ethanol production from sugarcane',\n",
       "  'ethanol, without water, in 95% solution state, from fermentation',\n",
       "  'BR'),\n",
       " ('harvesting, by complete harvester, potatoes',\n",
       "  'harvesting, by complete harvester, potatoes',\n",
       "  'CA-QC'): ('harvesting, by complete harvester, ground crops',\n",
       "  'harvesting, by complete harvester, ground crops',\n",
       "  'CA-QC'),\n",
       " ('harvesting, by complete harvester, potatoes',\n",
       "  'harvesting, by complete harvester, potatoes',\n",
       "  'CH'): ('harvesting, by complete harvester, ground crops',\n",
       "  'harvesting, by complete harvester, ground crops',\n",
       "  'CH'),\n",
       " ('harvesting, by complete harvester, potatoes',\n",
       "  'harvesting, by complete harvester, potatoes',\n",
       "  'RoW'): ('harvesting, by complete harvester, ground crops',\n",
       "  'harvesting, by complete harvester, ground crops',\n",
       "  'RoW'),\n",
       " ('market for ash, from combustion of bagasse from sugar cane',\n",
       "  'ash, from combustion of bagasse from sugar cane',\n",
       "  'GLO'): ('market for ash, from combustion of bagasse from sugarcane',\n",
       "  'ash, from combustion of bagasse from sugarcane',\n",
       "  'GLO'),\n",
       " ('market for coconut, husked',\n",
       "  'coconut, husked',\n",
       "  'GLO'): ('market for coconut, dehusked', 'coconut, dehusked', 'GLO'),\n",
       " ('market for diesel-electric generating set production 10MW',\n",
       "  'diesel-electric generating set, 10MW',\n",
       "  'GLO'): ('market for diesel-electric generating set, 10MW',\n",
       "  'diesel-electric generating set, 10MW',\n",
       "  'GLO'),\n",
       " ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 1'): ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Africa'),\n",
       " ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 2, without Quebec'): ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, North America, without Quebec'),\n",
       " ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 3'): ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, South America'),\n",
       " ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 4&5 without China'): ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Asia, without China and GCC'),\n",
       " ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area 8'): ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Gulf Cooperation Council'),\n",
       " ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Europe outside EU & EFTA'): ('market for electricity, high voltage, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'IAI Area, Russia & RER w/o EU27 & EFTA'),\n",
       " ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 1'): ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, Africa'),\n",
       " ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 2, without Quebec'): ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, North America, without Quebec'),\n",
       " ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 3'): ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, South America'),\n",
       " ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 4&5 without China'): ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, Asia, without China and GCC'),\n",
       " ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area 8'): ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, Gulf Cooperation Council'),\n",
       " ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, Europe outside EU & EFTA'): ('market for electricity, medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'IAI Area, Russia & RER w/o EU27 & EFTA'),\n",
       " ('market for harvesting, by complete harvester, potatoes',\n",
       "  'harvesting, by complete harvester, potatoes',\n",
       "  'GLO'): ('market for harvesting, by complete harvester, ground crops',\n",
       "  'harvesting, by complete harvester, ground crops',\n",
       "  'GLO'),\n",
       " ('market for rock wool', 'rock wool', 'GLO'): ('market for stone wool',\n",
       "  'stone wool',\n",
       "  'GLO'),\n",
       " ('market for rock wool factory',\n",
       "  'rock wool factory',\n",
       "  'GLO'): ('market for stone wool factory', 'stone wool factory', 'GLO'),\n",
       " ('market for rock wool, packed',\n",
       "  'rock wool, packed',\n",
       "  'GLO'): ('market for stone wool, packed', 'stone wool, packed', 'GLO'),\n",
       " ('onion855 production', 'onion', 'GLO'): ('onion production', 'onion', 'RoW'),\n",
       " ('rock wool factory construction',\n",
       "  'rock wool factory',\n",
       "  'CH'): ('stone wool factory construction', 'stone wool factory', 'CH'),\n",
       " ('rock wool factory construction',\n",
       "  'rock wool factory',\n",
       "  'RoW'): ('stone wool factory construction', 'stone wool factory', 'RoW'),\n",
       " ('rock wool production', 'rock wool', 'CH'): ('stone wool production',\n",
       "  'stone wool',\n",
       "  'CH'),\n",
       " ('rock wool production', 'rock wool', 'RoW'): ('stone wool production',\n",
       "  'stone wool',\n",
       "  'RoW'),\n",
       " ('rock wool production, packed',\n",
       "  'rock wool, packed',\n",
       "  'CH'): ('stone wool production, packed', 'stone wool, packed', 'CH'),\n",
       " ('rock wool production, packed',\n",
       "  'rock wool, packed',\n",
       "  'RoW'): ('stone wool production, packed', 'stone wool, packed', 'RoW'),\n",
       " ('treatment of biogas, burned in micro gas turbine 100kWe',\n",
       "  'electricity, low voltage',\n",
       "  'CH'): ('biogas, burned in micro gas turbine 100kWe',\n",
       "  'electricity, low voltage',\n",
       "  'CH'),\n",
       " ('treatment of biogas, burned in polymer electrolyte membrane fuel cell 2kWe, future',\n",
       "  'electricity, low voltage',\n",
       "  'CH'): ('biogas, burned in polymer electrolyte membrane fuel cell 2kWe, future',\n",
       "  'electricity, low voltage',\n",
       "  'CH'),\n",
       " ('treatment of biogas, burned in solid oxide fuel cell 125kWe, future',\n",
       "  'electricity, low voltage',\n",
       "  'CH'): ('biogas, burned in solid oxide fuel cell 125kWe, future',\n",
       "  'electricity, low voltage',\n",
       "  'CH'),\n",
       " ('treatment of biogas, burned in solid oxide fuel cell, with micro gas turbine, 180kWe, future',\n",
       "  'electricity, low voltage',\n",
       "  'CH'): ('biogas, burned in solid oxide fuel cell, with micro gas turbine, 180kWe, future',\n",
       "  'electricity, low voltage',\n",
       "  'CH')}"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "renamed_32_33"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "workbook = xlsxwriter.Workbook('ecoinvent-32-33-migration.xlsx')\n",
    "worksheet = workbook.add_worksheet('matching')\n",
    "\n",
    "labels = [\n",
    "    \"Old name\",\n",
    "    \"Old RP\",\n",
    "    \"Old location\",\n",
    "    \"New name\",\n",
    "    \"New RP\",\n",
    "    \"New location\",\n",
    "    \"Comment\",\n",
    "]\n",
    "\n",
    "for index, label in enumerate(labels):\n",
    "    worksheet.write(0, index, label)\n",
    "\n",
    "for index, row in enumerate(sorted(data_32.difference(data_33))):\n",
    "    for col in (0, 1, 2):\n",
    "        worksheet.write(index + 1, col, row[col])\n",
    "    if row in renamed_32_33:\n",
    "        new = renamed_32_33[row]\n",
    "        for col in (0, 1, 2):\n",
    "            worksheet.write(index + 1, col + 3, new[col])\n",
    "\n",
    "workbook.close()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Validate manual lists\n",
    "\n",
    "Need to make sure we can find each new linked activity."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import xlrd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "ws = xlrd.open_workbook(\"/Users/cmutel/Downloads/ecoinvent-32-33-migration.xlsx\").sheet_by_name(\"matching\")\n",
    "new_data = [\n",
    "    tuple([ws.cell_value(row, col) for col in (3,4,5)]) \n",
    "    for row in range(1, ws.nrows) \n",
    "    if ws.cell_value(row, 3)\n",
    "]\n",
    "\n",
    "for key in new_data:\n",
    "    if key not in data_33:\n",
    "        print(key)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "ws = xlrd.open_workbook(\"/Users/cmutel/Downloads/ecoinvent-31-33-migration.xlsx\").sheet_by_name(\"matching\")\n",
    "new_data = [\n",
    "    tuple([ws.cell_value(row, col) for col in (3,4,5)]) \n",
    "    for row in range(1, ws.nrows) \n",
    "    if ws.cell_value(row, 3)\n",
    "]\n",
    "\n",
    "for key in new_data:\n",
    "    if key not in data_33:\n",
    "        print(key)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "How many of our 517 missing activities were `deleted or replaced`?"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "275"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "changed_31 = set(zip(overview['activityName'], overview['reference product'], overview['geography']))\n",
    "517 - len(data_31.difference(data_32).difference(changed_31))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Changed reference products\n",
    "\n",
    "Find cases where the reference or byproduct name was changed. Byproducts need to be included because this list if for the undefined datasets - the byproducts can become reference product in new activities, depending on the system model."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "changes = pd.read_excel(fp, \"quantitative changes\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "There are four types of changes listed here:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['updated', 'renaming only', 'added', 'deleted'], dtype=object)"
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "changes['change'].unique()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "We don't care about `added` activities, nor do we care about `updated` activities. Updated activities have changes in the amount, production volume, or price of an exchange, but we are trying to figure out how to update links from 3.1 to 3.2 - not update 3.1 itself. So we don't need to care about these changes."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Find changes where:\n",
    "\n",
    "* The change was to a reference or byproduct\n",
    "* The change was a renaming change"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Warning: evaluating in Python space because the '*' operator is not supported by numexpr for the bool dtype, use '&' instead\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "183"
      ]
     },
     "execution_count": 51,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "mask = (\n",
    "    ((changes['group'] == 'ReferenceProduct') | (changes['group'] == 'Byproduct')) *\n",
    "    (changes['change'] == 'renaming only')\n",
    ")\n",
    "mask.sum()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ISIC number</th>\n",
       "      <th>ISIC class</th>\n",
       "      <th>activityName</th>\n",
       "      <th>geography</th>\n",
       "      <th>reference product</th>\n",
       "      <th>field</th>\n",
       "      <th>change</th>\n",
       "      <th>group</th>\n",
       "      <th>exchange name</th>\n",
       "      <th>compartment</th>\n",
       "      <th>...</th>\n",
       "      <th>value current</th>\n",
       "      <th>value current / value previous</th>\n",
       "      <th>unit</th>\n",
       "      <th>activityName previous</th>\n",
       "      <th>activityName renamed</th>\n",
       "      <th>exchange name previous</th>\n",
       "      <th>exchange name renamed</th>\n",
       "      <th>activityLink activityName previous</th>\n",
       "      <th>activityLink activityName renamed</th>\n",
       "      <th>activityLink geography previous</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>480</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, softwood, dried (u=10%), ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>151</td>\n",
       "      <td>NaN</td>\n",
       "      <td>EUR2005</td>\n",
       "      <td>sawnwood production, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>481</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, softwood, dried (u=10%), ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>483</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, softwood, dried (u=10%), ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>23103500</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>633</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>lath, softwood, raw, kiln drying to u=10%</td>\n",
       "      <td>CH</td>\n",
       "      <td>sawnwood, lath, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, lath, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>lath, softwood, raw, kiln drying</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, lath, softwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1914</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>planing, board, softwood, u=10%</td>\n",
       "      <td>CH</td>\n",
       "      <td>sawnwood, board, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, board, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>planing, board, softwood, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, board, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3111</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, hardwood, dried (u=10%), ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, hardwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, hardwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3113</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, hardwood, dried (u=10%), ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>2790000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, hardwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, hardwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3115</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, hardwood, dried (u=10%), ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>265</td>\n",
       "      <td>NaN</td>\n",
       "      <td>EUR2005</td>\n",
       "      <td>sawnwood production, hardwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, hardwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3154</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for shavings, hardwood, measured as dry...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>shavings, hardwood, measured as dry mass</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>shavings, hardwood, measured as dry mass</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>market for shaving, hardwood, measured as dry ...</td>\n",
       "      <td>yes</td>\n",
       "      <td>shaving, hardwood, measured as dry mass</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3155</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for shavings, hardwood, measured as dry...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>shavings, hardwood, measured as dry mass</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>shavings, hardwood, measured as dry mass</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>0.112329</td>\n",
       "      <td>NaN</td>\n",
       "      <td>EUR2005</td>\n",
       "      <td>market for shaving, hardwood, measured as dry ...</td>\n",
       "      <td>yes</td>\n",
       "      <td>shaving, hardwood, measured as dry mass</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3210</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>beam, hardwood, raw, air drying to u=20%</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, beam, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, beam, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>beam, hardwood, raw, air drying</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, beam, hardwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3240</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, beam, hardwood, dried (u=...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, beam, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, beam, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, beam, hardwood, kiln drie...</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, beam, hardwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4041</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>planing, board, hardwood, u=10%</td>\n",
       "      <td>CH</td>\n",
       "      <td>sawnwood, board, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, board, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>planing, board, hardwood, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, board, hardwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4282</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>beam, hardwood, raw, air drying to u=20%</td>\n",
       "      <td>CH</td>\n",
       "      <td>sawnwood, beam, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, beam, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>beam, hardwood, raw, air drying</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, beam, hardwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4293</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, board, softwood, raw, dri...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, board, softwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, board, softwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, board, softwood, raw, air...</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, board, softwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4815</th>\n",
       "      <td>4923</td>\n",
       "      <td>Freight transport by road</td>\n",
       "      <td>transport, freight, lorry &gt;32 metric ton, EURO6</td>\n",
       "      <td>RER</td>\n",
       "      <td>transport, freight, lorry &gt;32 metric ton, EURO6</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>transport, freight, lorry &gt;32 metric ton, EURO6</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>metric ton*km</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>transport, freight, loryy &gt;32 metric ton, EURO6</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4898</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, softwood, dried (u=20%), ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, softwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, softwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4899</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, softwood, dried (u=20%), ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, softwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>151</td>\n",
       "      <td>NaN</td>\n",
       "      <td>EUR2005</td>\n",
       "      <td>market for sawnwood, softwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4900</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, softwood, dried (u=20%), ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, softwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, softwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5115</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, softwood, dried (u=10%), ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>151</td>\n",
       "      <td>NaN</td>\n",
       "      <td>EUR2005</td>\n",
       "      <td>market for sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5116</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, softwood, dried (u=10%), ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5117</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, softwood, dried (u=10%), ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5662</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, board, hardwood, dried (u...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, board, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, board, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, board, hardwood, air drie...</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, board, hardwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5711</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, hardwood, dried (u=20%), ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>5350000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, hardwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, hardwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5713</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, hardwood, dried (u=20%), ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>265</td>\n",
       "      <td>NaN</td>\n",
       "      <td>EUR2005</td>\n",
       "      <td>sawnwood production, hardwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, hardwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5714</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, hardwood, dried (u=20%), ...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, hardwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, hardwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6127</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>board, hardwood, raw, air drying to u=20%</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, board, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, board, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>board, hardwood, raw, air drying</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, board, hardwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6192</th>\n",
       "      <td>2392</td>\n",
       "      <td>Manufacture of clay building materials</td>\n",
       "      <td>shale brick production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>shale brick</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>shale brick</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1.50707e+10</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>brick shale production</td>\n",
       "      <td>yes</td>\n",
       "      <td>brick shale</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6193</th>\n",
       "      <td>2392</td>\n",
       "      <td>Manufacture of clay building materials</td>\n",
       "      <td>shale brick production</td>\n",
       "      <td>GLO</td>\n",
       "      <td>shale brick</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>shale brick</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>brick shale production</td>\n",
       "      <td>yes</td>\n",
       "      <td>brick shale</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6625</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>planing, board, hardwood, u=20%</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, board, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, board, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>planing, board, hardwood, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, board, hardwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31470</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>lath, softwood, raw, kiln drying to u=10%</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, lath, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, lath, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>lath, softwood, raw, kiln drying</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, lath, softwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31516</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, softwood, raw, dried (u=10%)</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>28556500</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, softwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31520</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, softwood, raw, dried (u=10%)</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, softwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31707</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, softwood, raw, dried (u=20%)</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>100000000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, softwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31713</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, softwood, raw, dried (u=20%)</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, softwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32427</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, lath, hardwood, raw, drie...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, lath, hardwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, lath, hardwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, lath, hardwood, raw, kiln...</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, lath, hardwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32431</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, board, hardwood, dried (u...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, board, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, board, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, board, hardwood, kiln dri...</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, board, hardwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32901</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, hardwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, hardwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32902</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawnwood production, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, hardwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>2009000</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>sawnwood production, hardwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, hardwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32991</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>beam, softwood, raw, air drying to u=20%</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, beam, softwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, beam, softwood, raw, dried (u=20%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>beam, softwood, raw, air drying</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, beam, softwood, raw, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33050</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>planing, beam, hardwood, u=20%</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, beam, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, beam, hardwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>planing, beam, hardwood, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, beam, hardwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33402</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>board, softwood, raw, kiln drying to u=10%</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, board, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, board, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>board, softwood, raw, kiln drying</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, board, softwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33552</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>planing, board, hardwood, u=10%</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, board, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, board, hardwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>planing, board, hardwood, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, board, hardwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33590</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, softwood, dried (u=10%), ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>151</td>\n",
       "      <td>NaN</td>\n",
       "      <td>EUR2005</td>\n",
       "      <td>market for sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33591</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, softwood, dried (u=10%), ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33592</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, softwood, dried (u=10%), ...</td>\n",
       "      <td>RER</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33932</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>planing, board, softwood, u=20%</td>\n",
       "      <td>CH</td>\n",
       "      <td>sawnwood, board, softwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, board, softwood, dried (u=20%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>planing, board, softwood, air dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, board, softwood, air dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34006</th>\n",
       "      <td>4923</td>\n",
       "      <td>Freight transport by road</td>\n",
       "      <td>transport, freight, lorry &gt;32 metric ton, EURO6</td>\n",
       "      <td>GLO</td>\n",
       "      <td>transport, freight, lorry &gt;32 metric ton, EURO6</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>transport, freight, lorry &gt;32 metric ton, EURO6</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>metric ton*km</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>transport, freight, loryy &gt;32 metric ton, EURO6</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34367</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawing, hardwood</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, hardwood, raw</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, hardwood, raw</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>265</td>\n",
       "      <td>NaN</td>\n",
       "      <td>EUR2005</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>sawnwood, hardwood, raw, debarked</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34380</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>sawing, hardwood</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, hardwood, raw</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, hardwood, raw</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>sawnwood, hardwood, raw, debarked</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34893</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>board, hardwood, raw, kiln drying to u=10%</td>\n",
       "      <td>CH</td>\n",
       "      <td>sawnwood, board, hardwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, board, hardwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>board, hardwood, raw, kiln drying</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, board, hardwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35269</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, softwood, raw, dried (u=10%)</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, softwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35270</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>market for sawnwood, softwood, raw, dried (u=10%)</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, softwood, raw, dried (u=10%)</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>market for sawnwood, softwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, softwood, raw, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35484</th>\n",
       "      <td>1610</td>\n",
       "      <td>Sawmilling and planing of wood</td>\n",
       "      <td>planing, beam, softwood, u=10%</td>\n",
       "      <td>GLO</td>\n",
       "      <td>sawnwood, beam, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>sawnwood, beam, softwood, dried (u=10%), planed</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>m3</td>\n",
       "      <td>planing, beam, softwood, kiln dried</td>\n",
       "      <td>yes</td>\n",
       "      <td>sawnwood, beam, softwood, kiln dried, planed</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35598</th>\n",
       "      <td>2392</td>\n",
       "      <td>Manufacture of clay building materials</td>\n",
       "      <td>market for shale brick</td>\n",
       "      <td>GLO</td>\n",
       "      <td>shale brick</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>shale brick</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>market for brick shale</td>\n",
       "      <td>yes</td>\n",
       "      <td>brick shale</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35599</th>\n",
       "      <td>2392</td>\n",
       "      <td>Manufacture of clay building materials</td>\n",
       "      <td>market for shale brick</td>\n",
       "      <td>GLO</td>\n",
       "      <td>shale brick</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>shale brick</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>EUR2005</td>\n",
       "      <td>market for brick shale</td>\n",
       "      <td>yes</td>\n",
       "      <td>brick shale</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35600</th>\n",
       "      <td>2392</td>\n",
       "      <td>Manufacture of clay building materials</td>\n",
       "      <td>market for shale brick</td>\n",
       "      <td>GLO</td>\n",
       "      <td>shale brick</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>shale brick</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>kg</td>\n",
       "      <td>market for brick shale</td>\n",
       "      <td>yes</td>\n",
       "      <td>brick shale</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36473</th>\n",
       "      <td>3510a</td>\n",
       "      <td>Electric power generation based on liquid fuels</td>\n",
       "      <td>diesel, burned in diesel-electric generating s...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>diesel, burned in diesel-electric generating s...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>diesel, burned in diesel-electric generating s...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>MJ</td>\n",
       "      <td>diesel, burned in diesel-electric generating set</td>\n",
       "      <td>yes</td>\n",
       "      <td>diesel, burned in diesel-electric generating set</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36474</th>\n",
       "      <td>3510a</td>\n",
       "      <td>Electric power generation based on liquid fuels</td>\n",
       "      <td>diesel, burned in diesel-electric generating s...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>diesel, burned in diesel-electric generating s...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>diesel, burned in diesel-electric generating s...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>MJ</td>\n",
       "      <td>diesel, burned in diesel-electric generating set</td>\n",
       "      <td>yes</td>\n",
       "      <td>diesel, burned in diesel-electric generating set</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36475</th>\n",
       "      <td>3510a</td>\n",
       "      <td>Electric power generation based on liquid fuels</td>\n",
       "      <td>diesel, burned in diesel-electric generating s...</td>\n",
       "      <td>GLO</td>\n",
       "      <td>diesel, burned in diesel-electric generating s...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>renaming only</td>\n",
       "      <td>ReferenceProduct</td>\n",
       "      <td>diesel, burned in diesel-electric generating s...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0187453</td>\n",
       "      <td>NaN</td>\n",
       "      <td>EUR2005</td>\n",
       "      <td>diesel, burned in diesel-electric generating set</td>\n",
       "      <td>yes</td>\n",
       "      <td>diesel, burned in diesel-electric generating set</td>\n",
       "      <td>yes</td>\n",
       "      <td>NaN</td>\n",
       "      <td>no</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>183 rows × 24 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      ISIC number                                       ISIC class  \\\n",
       "480          1610                   Sawmilling and planing of wood   \n",
       "481          1610                   Sawmilling and planing of wood   \n",
       "483          1610                   Sawmilling and planing of wood   \n",
       "633          1610                   Sawmilling and planing of wood   \n",
       "1914         1610                   Sawmilling and planing of wood   \n",
       "3111         1610                   Sawmilling and planing of wood   \n",
       "3113         1610                   Sawmilling and planing of wood   \n",
       "3115         1610                   Sawmilling and planing of wood   \n",
       "3154         1610                   Sawmilling and planing of wood   \n",
       "3155         1610                   Sawmilling and planing of wood   \n",
       "3210         1610                   Sawmilling and planing of wood   \n",
       "3240         1610                   Sawmilling and planing of wood   \n",
       "4041         1610                   Sawmilling and planing of wood   \n",
       "4282         1610                   Sawmilling and planing of wood   \n",
       "4293         1610                   Sawmilling and planing of wood   \n",
       "4815         4923                        Freight transport by road   \n",
       "4898         1610                   Sawmilling and planing of wood   \n",
       "4899         1610                   Sawmilling and planing of wood   \n",
       "4900         1610                   Sawmilling and planing of wood   \n",
       "5115         1610                   Sawmilling and planing of wood   \n",
       "5116         1610                   Sawmilling and planing of wood   \n",
       "5117         1610                   Sawmilling and planing of wood   \n",
       "5662         1610                   Sawmilling and planing of wood   \n",
       "5711         1610                   Sawmilling and planing of wood   \n",
       "5713         1610                   Sawmilling and planing of wood   \n",
       "5714         1610                   Sawmilling and planing of wood   \n",
       "6127         1610                   Sawmilling and planing of wood   \n",
       "6192         2392           Manufacture of clay building materials   \n",
       "6193         2392           Manufacture of clay building materials   \n",
       "6625         1610                   Sawmilling and planing of wood   \n",
       "...           ...                                              ...   \n",
       "31470        1610                   Sawmilling and planing of wood   \n",
       "31516        1610                   Sawmilling and planing of wood   \n",
       "31520        1610                   Sawmilling and planing of wood   \n",
       "31707        1610                   Sawmilling and planing of wood   \n",
       "31713        1610                   Sawmilling and planing of wood   \n",
       "32427        1610                   Sawmilling and planing of wood   \n",
       "32431        1610                   Sawmilling and planing of wood   \n",
       "32901        1610                   Sawmilling and planing of wood   \n",
       "32902        1610                   Sawmilling and planing of wood   \n",
       "32991        1610                   Sawmilling and planing of wood   \n",
       "33050        1610                   Sawmilling and planing of wood   \n",
       "33402        1610                   Sawmilling and planing of wood   \n",
       "33552        1610                   Sawmilling and planing of wood   \n",
       "33590        1610                   Sawmilling and planing of wood   \n",
       "33591        1610                   Sawmilling and planing of wood   \n",
       "33592        1610                   Sawmilling and planing of wood   \n",
       "33932        1610                   Sawmilling and planing of wood   \n",
       "34006        4923                        Freight transport by road   \n",
       "34367        1610                   Sawmilling and planing of wood   \n",
       "34380        1610                   Sawmilling and planing of wood   \n",
       "34893        1610                   Sawmilling and planing of wood   \n",
       "35269        1610                   Sawmilling and planing of wood   \n",
       "35270        1610                   Sawmilling and planing of wood   \n",
       "35484        1610                   Sawmilling and planing of wood   \n",
       "35598        2392           Manufacture of clay building materials   \n",
       "35599        2392           Manufacture of clay building materials   \n",
       "35600        2392           Manufacture of clay building materials   \n",
       "36473       3510a  Electric power generation based on liquid fuels   \n",
       "36474       3510a  Electric power generation based on liquid fuels   \n",
       "36475       3510a  Electric power generation based on liquid fuels   \n",
       "\n",
       "                                            activityName geography  \\\n",
       "480    sawnwood production, softwood, dried (u=10%), ...       RER   \n",
       "481    sawnwood production, softwood, dried (u=10%), ...       RER   \n",
       "483    sawnwood production, softwood, dried (u=10%), ...       RER   \n",
       "633            lath, softwood, raw, kiln drying to u=10%        CH   \n",
       "1914                     planing, board, softwood, u=10%        CH   \n",
       "3111   sawnwood production, hardwood, dried (u=10%), ...       GLO   \n",
       "3113   sawnwood production, hardwood, dried (u=10%), ...       GLO   \n",
       "3115   sawnwood production, hardwood, dried (u=10%), ...       GLO   \n",
       "3154   market for shavings, hardwood, measured as dry...       GLO   \n",
       "3155   market for shavings, hardwood, measured as dry...       GLO   \n",
       "3210            beam, hardwood, raw, air drying to u=20%       GLO   \n",
       "3240   market for sawnwood, beam, hardwood, dried (u=...       GLO   \n",
       "4041                     planing, board, hardwood, u=10%        CH   \n",
       "4282            beam, hardwood, raw, air drying to u=20%        CH   \n",
       "4293   market for sawnwood, board, softwood, raw, dri...       GLO   \n",
       "4815     transport, freight, lorry >32 metric ton, EURO6       RER   \n",
       "4898   market for sawnwood, softwood, dried (u=20%), ...       RER   \n",
       "4899   market for sawnwood, softwood, dried (u=20%), ...       RER   \n",
       "4900   market for sawnwood, softwood, dried (u=20%), ...       RER   \n",
       "5115   market for sawnwood, softwood, dried (u=10%), ...       GLO   \n",
       "5116   market for sawnwood, softwood, dried (u=10%), ...       GLO   \n",
       "5117   market for sawnwood, softwood, dried (u=10%), ...       GLO   \n",
       "5662   market for sawnwood, board, hardwood, dried (u...       GLO   \n",
       "5711   sawnwood production, hardwood, dried (u=20%), ...       GLO   \n",
       "5713   sawnwood production, hardwood, dried (u=20%), ...       GLO   \n",
       "5714   sawnwood production, hardwood, dried (u=20%), ...       GLO   \n",
       "6127           board, hardwood, raw, air drying to u=20%       GLO   \n",
       "6192                              shale brick production       GLO   \n",
       "6193                              shale brick production       GLO   \n",
       "6625                     planing, board, hardwood, u=20%       GLO   \n",
       "...                                                  ...       ...   \n",
       "31470          lath, softwood, raw, kiln drying to u=10%       GLO   \n",
       "31516  sawnwood production, softwood, raw, dried (u=10%)       RER   \n",
       "31520  sawnwood production, softwood, raw, dried (u=10%)       RER   \n",
       "31707  sawnwood production, softwood, raw, dried (u=20%)       GLO   \n",
       "31713  sawnwood production, softwood, raw, dried (u=20%)       GLO   \n",
       "32427  market for sawnwood, lath, hardwood, raw, drie...       GLO   \n",
       "32431  market for sawnwood, board, hardwood, dried (u...       GLO   \n",
       "32901  sawnwood production, hardwood, raw, dried (u=20%)       RER   \n",
       "32902  sawnwood production, hardwood, raw, dried (u=20%)       RER   \n",
       "32991           beam, softwood, raw, air drying to u=20%       GLO   \n",
       "33050                     planing, beam, hardwood, u=20%       GLO   \n",
       "33402         board, softwood, raw, kiln drying to u=10%       GLO   \n",
       "33552                    planing, board, hardwood, u=10%       GLO   \n",
       "33590  market for sawnwood, softwood, dried (u=10%), ...       RER   \n",
       "33591  market for sawnwood, softwood, dried (u=10%), ...       RER   \n",
       "33592  market for sawnwood, softwood, dried (u=10%), ...       RER   \n",
       "33932                    planing, board, softwood, u=20%        CH   \n",
       "34006    transport, freight, lorry >32 metric ton, EURO6       GLO   \n",
       "34367                                   sawing, hardwood       GLO   \n",
       "34380                                   sawing, hardwood       GLO   \n",
       "34893         board, hardwood, raw, kiln drying to u=10%        CH   \n",
       "35269  market for sawnwood, softwood, raw, dried (u=10%)       GLO   \n",
       "35270  market for sawnwood, softwood, raw, dried (u=10%)       GLO   \n",
       "35484                     planing, beam, softwood, u=10%       GLO   \n",
       "35598                             market for shale brick       GLO   \n",
       "35599                             market for shale brick       GLO   \n",
       "35600                             market for shale brick       GLO   \n",
       "36473  diesel, burned in diesel-electric generating s...       GLO   \n",
       "36474  diesel, burned in diesel-electric generating s...       GLO   \n",
       "36475  diesel, burned in diesel-electric generating s...       GLO   \n",
       "\n",
       "                                       reference product field         change  \\\n",
       "480            sawnwood, softwood, dried (u=10%), planed   NaN  renaming only   \n",
       "481            sawnwood, softwood, dried (u=10%), planed   NaN  renaming only   \n",
       "483            sawnwood, softwood, dried (u=10%), planed   NaN  renaming only   \n",
       "633         sawnwood, lath, softwood, raw, dried (u=10%)   NaN  renaming only   \n",
       "1914    sawnwood, board, softwood, dried (u=10%), planed   NaN  renaming only   \n",
       "3111           sawnwood, hardwood, dried (u=10%), planed   NaN  renaming only   \n",
       "3113           sawnwood, hardwood, dried (u=10%), planed   NaN  renaming only   \n",
       "3115           sawnwood, hardwood, dried (u=10%), planed   NaN  renaming only   \n",
       "3154            shavings, hardwood, measured as dry mass   NaN  renaming only   \n",
       "3155            shavings, hardwood, measured as dry mass   NaN  renaming only   \n",
       "3210        sawnwood, beam, hardwood, raw, dried (u=20%)   NaN  renaming only   \n",
       "3240     sawnwood, beam, hardwood, dried (u=10%), planed   NaN  renaming only   \n",
       "4041    sawnwood, board, hardwood, dried (u=10%), planed   NaN  renaming only   \n",
       "4282        sawnwood, beam, hardwood, raw, dried (u=20%)   NaN  renaming only   \n",
       "4293       sawnwood, board, softwood, raw, dried (u=20%)   NaN  renaming only   \n",
       "4815     transport, freight, lorry >32 metric ton, EURO6   NaN  renaming only   \n",
       "4898           sawnwood, softwood, dried (u=20%), planed   NaN  renaming only   \n",
       "4899           sawnwood, softwood, dried (u=20%), planed   NaN  renaming only   \n",
       "4900           sawnwood, softwood, dried (u=20%), planed   NaN  renaming only   \n",
       "5115           sawnwood, softwood, dried (u=10%), planed   NaN  renaming only   \n",
       "5116           sawnwood, softwood, dried (u=10%), planed   NaN  renaming only   \n",
       "5117           sawnwood, softwood, dried (u=10%), planed   NaN  renaming only   \n",
       "5662    sawnwood, board, hardwood, dried (u=20%), planed   NaN  renaming only   \n",
       "5711           sawnwood, hardwood, dried (u=20%), planed   NaN  renaming only   \n",
       "5713           sawnwood, hardwood, dried (u=20%), planed   NaN  renaming only   \n",
       "5714           sawnwood, hardwood, dried (u=20%), planed   NaN  renaming only   \n",
       "6127       sawnwood, board, hardwood, raw, dried (u=20%)   NaN  renaming only   \n",
       "6192                                         shale brick   NaN  renaming only   \n",
       "6193                                         shale brick   NaN  renaming only   \n",
       "6625    sawnwood, board, hardwood, dried (u=20%), planed   NaN  renaming only   \n",
       "...                                                  ...   ...            ...   \n",
       "31470       sawnwood, lath, softwood, raw, dried (u=10%)   NaN  renaming only   \n",
       "31516             sawnwood, softwood, raw, dried (u=10%)   NaN  renaming only   \n",
       "31520             sawnwood, softwood, raw, dried (u=10%)   NaN  renaming only   \n",
       "31707             sawnwood, softwood, raw, dried (u=20%)   NaN  renaming only   \n",
       "31713             sawnwood, softwood, raw, dried (u=20%)   NaN  renaming only   \n",
       "32427       sawnwood, lath, hardwood, raw, dried (u=10%)   NaN  renaming only   \n",
       "32431   sawnwood, board, hardwood, dried (u=10%), planed   NaN  renaming only   \n",
       "32901             sawnwood, hardwood, raw, dried (u=20%)   NaN  renaming only   \n",
       "32902             sawnwood, hardwood, raw, dried (u=20%)   NaN  renaming only   \n",
       "32991       sawnwood, beam, softwood, raw, dried (u=20%)   NaN  renaming only   \n",
       "33050    sawnwood, beam, hardwood, dried (u=20%), planed   NaN  renaming only   \n",
       "33402      sawnwood, board, softwood, raw, dried (u=10%)   NaN  renaming only   \n",
       "33552   sawnwood, board, hardwood, dried (u=10%), planed   NaN  renaming only   \n",
       "33590          sawnwood, softwood, dried (u=10%), planed   NaN  renaming only   \n",
       "33591          sawnwood, softwood, dried (u=10%), planed   NaN  renaming only   \n",
       "33592          sawnwood, softwood, dried (u=10%), planed   NaN  renaming only   \n",
       "33932   sawnwood, board, softwood, dried (u=20%), planed   NaN  renaming only   \n",
       "34006    transport, freight, lorry >32 metric ton, EURO6   NaN  renaming only   \n",
       "34367                            sawnwood, hardwood, raw   NaN  renaming only   \n",
       "34380                            sawnwood, hardwood, raw   NaN  renaming only   \n",
       "34893      sawnwood, board, hardwood, raw, dried (u=10%)   NaN  renaming only   \n",
       "35269             sawnwood, softwood, raw, dried (u=10%)   NaN  renaming only   \n",
       "35270             sawnwood, softwood, raw, dried (u=10%)   NaN  renaming only   \n",
       "35484    sawnwood, beam, softwood, dried (u=10%), planed   NaN  renaming only   \n",
       "35598                                        shale brick   NaN  renaming only   \n",
       "35599                                        shale brick   NaN  renaming only   \n",
       "35600                                        shale brick   NaN  renaming only   \n",
       "36473  diesel, burned in diesel-electric generating s...   NaN  renaming only   \n",
       "36474  diesel, burned in diesel-electric generating s...   NaN  renaming only   \n",
       "36475  diesel, burned in diesel-electric generating s...   NaN  renaming only   \n",
       "\n",
       "                  group                                      exchange name  \\\n",
       "480    ReferenceProduct          sawnwood, softwood, dried (u=10%), planed   \n",
       "481    ReferenceProduct          sawnwood, softwood, dried (u=10%), planed   \n",
       "483    ReferenceProduct          sawnwood, softwood, dried (u=10%), planed   \n",
       "633    ReferenceProduct       sawnwood, lath, softwood, raw, dried (u=10%)   \n",
       "1914   ReferenceProduct   sawnwood, board, softwood, dried (u=10%), planed   \n",
       "3111   ReferenceProduct          sawnwood, hardwood, dried (u=10%), planed   \n",
       "3113   ReferenceProduct          sawnwood, hardwood, dried (u=10%), planed   \n",
       "3115   ReferenceProduct          sawnwood, hardwood, dried (u=10%), planed   \n",
       "3154   ReferenceProduct           shavings, hardwood, measured as dry mass   \n",
       "3155   ReferenceProduct           shavings, hardwood, measured as dry mass   \n",
       "3210   ReferenceProduct       sawnwood, beam, hardwood, raw, dried (u=20%)   \n",
       "3240   ReferenceProduct    sawnwood, beam, hardwood, dried (u=10%), planed   \n",
       "4041   ReferenceProduct   sawnwood, board, hardwood, dried (u=10%), planed   \n",
       "4282   ReferenceProduct       sawnwood, beam, hardwood, raw, dried (u=20%)   \n",
       "4293   ReferenceProduct      sawnwood, board, softwood, raw, dried (u=20%)   \n",
       "4815   ReferenceProduct    transport, freight, lorry >32 metric ton, EURO6   \n",
       "4898   ReferenceProduct          sawnwood, softwood, dried (u=20%), planed   \n",
       "4899   ReferenceProduct          sawnwood, softwood, dried (u=20%), planed   \n",
       "4900   ReferenceProduct          sawnwood, softwood, dried (u=20%), planed   \n",
       "5115   ReferenceProduct          sawnwood, softwood, dried (u=10%), planed   \n",
       "5116   ReferenceProduct          sawnwood, softwood, dried (u=10%), planed   \n",
       "5117   ReferenceProduct          sawnwood, softwood, dried (u=10%), planed   \n",
       "5662   ReferenceProduct   sawnwood, board, hardwood, dried (u=20%), planed   \n",
       "5711   ReferenceProduct          sawnwood, hardwood, dried (u=20%), planed   \n",
       "5713   ReferenceProduct          sawnwood, hardwood, dried (u=20%), planed   \n",
       "5714   ReferenceProduct          sawnwood, hardwood, dried (u=20%), planed   \n",
       "6127   ReferenceProduct      sawnwood, board, hardwood, raw, dried (u=20%)   \n",
       "6192   ReferenceProduct                                        shale brick   \n",
       "6193   ReferenceProduct                                        shale brick   \n",
       "6625   ReferenceProduct   sawnwood, board, hardwood, dried (u=20%), planed   \n",
       "...                 ...                                                ...   \n",
       "31470  ReferenceProduct       sawnwood, lath, softwood, raw, dried (u=10%)   \n",
       "31516  ReferenceProduct             sawnwood, softwood, raw, dried (u=10%)   \n",
       "31520  ReferenceProduct             sawnwood, softwood, raw, dried (u=10%)   \n",
       "31707  ReferenceProduct             sawnwood, softwood, raw, dried (u=20%)   \n",
       "31713  ReferenceProduct             sawnwood, softwood, raw, dried (u=20%)   \n",
       "32427  ReferenceProduct       sawnwood, lath, hardwood, raw, dried (u=10%)   \n",
       "32431  ReferenceProduct   sawnwood, board, hardwood, dried (u=10%), planed   \n",
       "32901  ReferenceProduct             sawnwood, hardwood, raw, dried (u=20%)   \n",
       "32902  ReferenceProduct             sawnwood, hardwood, raw, dried (u=20%)   \n",
       "32991  ReferenceProduct       sawnwood, beam, softwood, raw, dried (u=20%)   \n",
       "33050  ReferenceProduct    sawnwood, beam, hardwood, dried (u=20%), planed   \n",
       "33402  ReferenceProduct      sawnwood, board, softwood, raw, dried (u=10%)   \n",
       "33552  ReferenceProduct   sawnwood, board, hardwood, dried (u=10%), planed   \n",
       "33590  ReferenceProduct          sawnwood, softwood, dried (u=10%), planed   \n",
       "33591  ReferenceProduct          sawnwood, softwood, dried (u=10%), planed   \n",
       "33592  ReferenceProduct          sawnwood, softwood, dried (u=10%), planed   \n",
       "33932  ReferenceProduct   sawnwood, board, softwood, dried (u=20%), planed   \n",
       "34006  ReferenceProduct    transport, freight, lorry >32 metric ton, EURO6   \n",
       "34367  ReferenceProduct                            sawnwood, hardwood, raw   \n",
       "34380  ReferenceProduct                            sawnwood, hardwood, raw   \n",
       "34893  ReferenceProduct      sawnwood, board, hardwood, raw, dried (u=10%)   \n",
       "35269  ReferenceProduct             sawnwood, softwood, raw, dried (u=10%)   \n",
       "35270  ReferenceProduct             sawnwood, softwood, raw, dried (u=10%)   \n",
       "35484  ReferenceProduct    sawnwood, beam, softwood, dried (u=10%), planed   \n",
       "35598  ReferenceProduct                                        shale brick   \n",
       "35599  ReferenceProduct                                        shale brick   \n",
       "35600  ReferenceProduct                                        shale brick   \n",
       "36473  ReferenceProduct  diesel, burned in diesel-electric generating s...   \n",
       "36474  ReferenceProduct  diesel, burned in diesel-electric generating s...   \n",
       "36475  ReferenceProduct  diesel, burned in diesel-electric generating s...   \n",
       "\n",
       "      compartment               ...               value current  \\\n",
       "480           NaN               ...                         151   \n",
       "481           NaN               ...                           1   \n",
       "483           NaN               ...                    23103500   \n",
       "633           NaN               ...                           1   \n",
       "1914          NaN               ...                           1   \n",
       "3111          NaN               ...                           1   \n",
       "3113          NaN               ...                     2790000   \n",
       "3115          NaN               ...                         265   \n",
       "3154          NaN               ...                           1   \n",
       "3155          NaN               ...                    0.112329   \n",
       "3210          NaN               ...                           1   \n",
       "3240          NaN               ...                           1   \n",
       "4041          NaN               ...                           1   \n",
       "4282          NaN               ...                           1   \n",
       "4293          NaN               ...                           1   \n",
       "4815          NaN               ...                           1   \n",
       "4898          NaN               ...                           0   \n",
       "4899          NaN               ...                         151   \n",
       "4900          NaN               ...                           1   \n",
       "5115          NaN               ...                         151   \n",
       "5116          NaN               ...                           1   \n",
       "5117          NaN               ...                           0   \n",
       "5662          NaN               ...                           1   \n",
       "5711          NaN               ...                     5350000   \n",
       "5713          NaN               ...                         265   \n",
       "5714          NaN               ...                           1   \n",
       "6127          NaN               ...                           1   \n",
       "6192          NaN               ...                 1.50707e+10   \n",
       "6193          NaN               ...                           1   \n",
       "6625          NaN               ...                           1   \n",
       "...           ...               ...                         ...   \n",
       "31470         NaN               ...                           1   \n",
       "31516         NaN               ...                    28556500   \n",
       "31520         NaN               ...                           1   \n",
       "31707         NaN               ...                   100000000   \n",
       "31713         NaN               ...                           1   \n",
       "32427         NaN               ...                           1   \n",
       "32431         NaN               ...                           1   \n",
       "32901         NaN               ...                           1   \n",
       "32902         NaN               ...                     2009000   \n",
       "32991         NaN               ...                           1   \n",
       "33050         NaN               ...                           1   \n",
       "33402         NaN               ...                           1   \n",
       "33552         NaN               ...                           1   \n",
       "33590         NaN               ...                         151   \n",
       "33591         NaN               ...                           1   \n",
       "33592         NaN               ...                           0   \n",
       "33932         NaN               ...                           1   \n",
       "34006         NaN               ...                           1   \n",
       "34367         NaN               ...                         265   \n",
       "34380         NaN               ...                           1   \n",
       "34893         NaN               ...                           1   \n",
       "35269         NaN               ...                           0   \n",
       "35270         NaN               ...                           1   \n",
       "35484         NaN               ...                           1   \n",
       "35598         NaN               ...                           0   \n",
       "35599         NaN               ...                           0   \n",
       "35600         NaN               ...                           1   \n",
       "36473         NaN               ...                           1   \n",
       "36474         NaN               ...                           1   \n",
       "36475         NaN               ...                   0.0187453   \n",
       "\n",
       "      value current / value previous           unit  \\\n",
       "480                              NaN        EUR2005   \n",
       "481                              NaN             m3   \n",
       "483                              NaN             m3   \n",
       "633                              NaN             m3   \n",
       "1914                             NaN             m3   \n",
       "3111                             NaN             m3   \n",
       "3113                             NaN             m3   \n",
       "3115                             NaN        EUR2005   \n",
       "3154                             NaN             kg   \n",
       "3155                             NaN        EUR2005   \n",
       "3210                             NaN             m3   \n",
       "3240                             NaN             m3   \n",
       "4041                             NaN             m3   \n",
       "4282                             NaN             m3   \n",
       "4293                             NaN             m3   \n",
       "4815                             NaN  metric ton*km   \n",
       "4898                             NaN             m3   \n",
       "4899                             NaN        EUR2005   \n",
       "4900                             NaN             m3   \n",
       "5115                             NaN        EUR2005   \n",
       "5116                             NaN             m3   \n",
       "5117                             NaN             m3   \n",
       "5662                             NaN             m3   \n",
       "5711                             NaN             m3   \n",
       "5713                             NaN        EUR2005   \n",
       "5714                             NaN             m3   \n",
       "6127                             NaN             m3   \n",
       "6192                             NaN             kg   \n",
       "6193                             NaN             kg   \n",
       "6625                             NaN             m3   \n",
       "...                              ...            ...   \n",
       "31470                            NaN             m3   \n",
       "31516                            NaN             m3   \n",
       "31520                            NaN             m3   \n",
       "31707                            NaN             m3   \n",
       "31713                            NaN             m3   \n",
       "32427                            NaN             m3   \n",
       "32431                            NaN             m3   \n",
       "32901                            NaN             m3   \n",
       "32902                            NaN             m3   \n",
       "32991                            NaN             m3   \n",
       "33050                            NaN             m3   \n",
       "33402                            NaN             m3   \n",
       "33552                            NaN             m3   \n",
       "33590                            NaN        EUR2005   \n",
       "33591                            NaN             m3   \n",
       "33592                            NaN             m3   \n",
       "33932                            NaN             m3   \n",
       "34006                            NaN  metric ton*km   \n",
       "34367                            NaN        EUR2005   \n",
       "34380                            NaN             m3   \n",
       "34893                            NaN             m3   \n",
       "35269                            NaN             m3   \n",
       "35270                            NaN             m3   \n",
       "35484                            NaN             m3   \n",
       "35598                            NaN             kg   \n",
       "35599                            NaN        EUR2005   \n",
       "35600                            NaN             kg   \n",
       "36473                            NaN             MJ   \n",
       "36474                            NaN             MJ   \n",
       "36475                            NaN        EUR2005   \n",
       "\n",
       "                                   activityName previous activityName renamed  \\\n",
       "480    sawnwood production, softwood, kiln dried, planed                  yes   \n",
       "481    sawnwood production, softwood, kiln dried, planed                  yes   \n",
       "483    sawnwood production, softwood, kiln dried, planed                  yes   \n",
       "633                     lath, softwood, raw, kiln drying                  yes   \n",
       "1914                planing, board, softwood, kiln dried                  yes   \n",
       "3111   sawnwood production, hardwood, kiln dried, planed                  yes   \n",
       "3113   sawnwood production, hardwood, kiln dried, planed                  yes   \n",
       "3115   sawnwood production, hardwood, kiln dried, planed                  yes   \n",
       "3154   market for shaving, hardwood, measured as dry ...                  yes   \n",
       "3155   market for shaving, hardwood, measured as dry ...                  yes   \n",
       "3210                     beam, hardwood, raw, air drying                  yes   \n",
       "3240   market for sawnwood, beam, hardwood, kiln drie...                  yes   \n",
       "4041                planing, board, hardwood, kiln dried                  yes   \n",
       "4282                     beam, hardwood, raw, air drying                  yes   \n",
       "4293   market for sawnwood, board, softwood, raw, air...                  yes   \n",
       "4815                                                 NaN                   no   \n",
       "4898    market for sawnwood, softwood, air dried, planed                  yes   \n",
       "4899    market for sawnwood, softwood, air dried, planed                  yes   \n",
       "4900    market for sawnwood, softwood, air dried, planed                  yes   \n",
       "5115   market for sawnwood, softwood, kiln dried, planed                  yes   \n",
       "5116   market for sawnwood, softwood, kiln dried, planed                  yes   \n",
       "5117   market for sawnwood, softwood, kiln dried, planed                  yes   \n",
       "5662   market for sawnwood, board, hardwood, air drie...                  yes   \n",
       "5711    sawnwood production, hardwood, air dried, planed                  yes   \n",
       "5713    sawnwood production, hardwood, air dried, planed                  yes   \n",
       "5714    sawnwood production, hardwood, air dried, planed                  yes   \n",
       "6127                    board, hardwood, raw, air drying                  yes   \n",
       "6192                              brick shale production                  yes   \n",
       "6193                              brick shale production                  yes   \n",
       "6625                 planing, board, hardwood, air dried                  yes   \n",
       "...                                                  ...                  ...   \n",
       "31470                   lath, softwood, raw, kiln drying                  yes   \n",
       "31516     sawnwood production, softwood, raw, kiln dried                  yes   \n",
       "31520     sawnwood production, softwood, raw, kiln dried                  yes   \n",
       "31707      sawnwood production, softwood, raw, air dried                  yes   \n",
       "31713      sawnwood production, softwood, raw, air dried                  yes   \n",
       "32427  market for sawnwood, lath, hardwood, raw, kiln...                  yes   \n",
       "32431  market for sawnwood, board, hardwood, kiln dri...                  yes   \n",
       "32901      sawnwood production, hardwood, raw, air dried                  yes   \n",
       "32902      sawnwood production, hardwood, raw, air dried                  yes   \n",
       "32991                    beam, softwood, raw, air drying                  yes   \n",
       "33050                 planing, beam, hardwood, air dried                  yes   \n",
       "33402                  board, softwood, raw, kiln drying                  yes   \n",
       "33552               planing, board, hardwood, kiln dried                  yes   \n",
       "33590  market for sawnwood, softwood, kiln dried, planed                  yes   \n",
       "33591  market for sawnwood, softwood, kiln dried, planed                  yes   \n",
       "33592  market for sawnwood, softwood, kiln dried, planed                  yes   \n",
       "33932                planing, board, softwood, air dried                  yes   \n",
       "34006                                                NaN                   no   \n",
       "34367                                                NaN                   no   \n",
       "34380                                                NaN                   no   \n",
       "34893                  board, hardwood, raw, kiln drying                  yes   \n",
       "35269     market for sawnwood, softwood, raw, kiln dried                  yes   \n",
       "35270     market for sawnwood, softwood, raw, kiln dried                  yes   \n",
       "35484                planing, beam, softwood, kiln dried                  yes   \n",
       "35598                             market for brick shale                  yes   \n",
       "35599                             market for brick shale                  yes   \n",
       "35600                             market for brick shale                  yes   \n",
       "36473   diesel, burned in diesel-electric generating set                  yes   \n",
       "36474   diesel, burned in diesel-electric generating set                  yes   \n",
       "36475   diesel, burned in diesel-electric generating set                  yes   \n",
       "\n",
       "                                 exchange name previous exchange name renamed  \\\n",
       "480              sawnwood, softwood, kiln dried, planed                   yes   \n",
       "481              sawnwood, softwood, kiln dried, planed                   yes   \n",
       "483              sawnwood, softwood, kiln dried, planed                   yes   \n",
       "633           sawnwood, lath, softwood, raw, kiln dried                   yes   \n",
       "1914      sawnwood, board, softwood, kiln dried, planed                   yes   \n",
       "3111             sawnwood, hardwood, kiln dried, planed                   yes   \n",
       "3113             sawnwood, hardwood, kiln dried, planed                   yes   \n",
       "3115             sawnwood, hardwood, kiln dried, planed                   yes   \n",
       "3154            shaving, hardwood, measured as dry mass                   yes   \n",
       "3155            shaving, hardwood, measured as dry mass                   yes   \n",
       "3210           sawnwood, beam, hardwood, raw, air dried                   yes   \n",
       "3240       sawnwood, beam, hardwood, kiln dried, planed                   yes   \n",
       "4041      sawnwood, board, hardwood, kiln dried, planed                   yes   \n",
       "4282           sawnwood, beam, hardwood, raw, air dried                   yes   \n",
       "4293          sawnwood, board, softwood, raw, air dried                   yes   \n",
       "4815    transport, freight, loryy >32 metric ton, EURO6                   yes   \n",
       "4898              sawnwood, softwood, air dried, planed                   yes   \n",
       "4899              sawnwood, softwood, air dried, planed                   yes   \n",
       "4900              sawnwood, softwood, air dried, planed                   yes   \n",
       "5115             sawnwood, softwood, kiln dried, planed                   yes   \n",
       "5116             sawnwood, softwood, kiln dried, planed                   yes   \n",
       "5117             sawnwood, softwood, kiln dried, planed                   yes   \n",
       "5662       sawnwood, board, hardwood, air dried, planed                   yes   \n",
       "5711              sawnwood, hardwood, air dried, planed                   yes   \n",
       "5713              sawnwood, hardwood, air dried, planed                   yes   \n",
       "5714              sawnwood, hardwood, air dried, planed                   yes   \n",
       "6127          sawnwood, board, hardwood, raw, air dried                   yes   \n",
       "6192                                        brick shale                   yes   \n",
       "6193                                        brick shale                   yes   \n",
       "6625       sawnwood, board, hardwood, air dried, planed                   yes   \n",
       "...                                                 ...                   ...   \n",
       "31470         sawnwood, lath, softwood, raw, kiln dried                   yes   \n",
       "31516               sawnwood, softwood, raw, kiln dried                   yes   \n",
       "31520               sawnwood, softwood, raw, kiln dried                   yes   \n",
       "31707                sawnwood, softwood, raw, air dried                   yes   \n",
       "31713                sawnwood, softwood, raw, air dried                   yes   \n",
       "32427         sawnwood, lath, hardwood, raw, kiln dried                   yes   \n",
       "32431     sawnwood, board, hardwood, kiln dried, planed                   yes   \n",
       "32901                sawnwood, hardwood, raw, air dried                   yes   \n",
       "32902                sawnwood, hardwood, raw, air dried                   yes   \n",
       "32991          sawnwood, beam, softwood, raw, air dried                   yes   \n",
       "33050       sawnwood, beam, hardwood, air dried, planed                   yes   \n",
       "33402        sawnwood, board, softwood, raw, kiln dried                   yes   \n",
       "33552     sawnwood, board, hardwood, kiln dried, planed                   yes   \n",
       "33590            sawnwood, softwood, kiln dried, planed                   yes   \n",
       "33591            sawnwood, softwood, kiln dried, planed                   yes   \n",
       "33592            sawnwood, softwood, kiln dried, planed                   yes   \n",
       "33932      sawnwood, board, softwood, air dried, planed                   yes   \n",
       "34006   transport, freight, loryy >32 metric ton, EURO6                   yes   \n",
       "34367                 sawnwood, hardwood, raw, debarked                   yes   \n",
       "34380                 sawnwood, hardwood, raw, debarked                   yes   \n",
       "34893        sawnwood, board, hardwood, raw, kiln dried                   yes   \n",
       "35269               sawnwood, softwood, raw, kiln dried                   yes   \n",
       "35270               sawnwood, softwood, raw, kiln dried                   yes   \n",
       "35484      sawnwood, beam, softwood, kiln dried, planed                   yes   \n",
       "35598                                       brick shale                   yes   \n",
       "35599                                       brick shale                   yes   \n",
       "35600                                       brick shale                   yes   \n",
       "36473  diesel, burned in diesel-electric generating set                   yes   \n",
       "36474  diesel, burned in diesel-electric generating set                   yes   \n",
       "36475  diesel, burned in diesel-electric generating set                   yes   \n",
       "\n",
       "      activityLink activityName previous activityLink activityName renamed  \\\n",
       "480                                  NaN                                no   \n",
       "481                                  NaN                                no   \n",
       "483                                  NaN                                no   \n",
       "633                                  NaN                                no   \n",
       "1914                                 NaN                                no   \n",
       "3111                                 NaN                                no   \n",
       "3113                                 NaN                                no   \n",
       "3115                                 NaN                                no   \n",
       "3154                                 NaN                                no   \n",
       "3155                                 NaN                                no   \n",
       "3210                                 NaN                                no   \n",
       "3240                                 NaN                                no   \n",
       "4041                                 NaN                                no   \n",
       "4282                                 NaN                                no   \n",
       "4293                                 NaN                                no   \n",
       "4815                                 NaN                                no   \n",
       "4898                                 NaN                                no   \n",
       "4899                                 NaN                                no   \n",
       "4900                                 NaN                                no   \n",
       "5115                                 NaN                                no   \n",
       "5116                                 NaN                                no   \n",
       "5117                                 NaN                                no   \n",
       "5662                                 NaN                                no   \n",
       "5711                                 NaN                                no   \n",
       "5713                                 NaN                                no   \n",
       "5714                                 NaN                                no   \n",
       "6127                                 NaN                                no   \n",
       "6192                                 NaN                                no   \n",
       "6193                                 NaN                                no   \n",
       "6625                                 NaN                                no   \n",
       "...                                  ...                               ...   \n",
       "31470                                NaN                                no   \n",
       "31516                                NaN                                no   \n",
       "31520                                NaN                                no   \n",
       "31707                                NaN                                no   \n",
       "31713                                NaN                                no   \n",
       "32427                                NaN                                no   \n",
       "32431                                NaN                                no   \n",
       "32901                                NaN                                no   \n",
       "32902                                NaN                                no   \n",
       "32991                                NaN                                no   \n",
       "33050                                NaN                                no   \n",
       "33402                                NaN                                no   \n",
       "33552                                NaN                                no   \n",
       "33590                                NaN                                no   \n",
       "33591                                NaN                                no   \n",
       "33592                                NaN                                no   \n",
       "33932                                NaN                                no   \n",
       "34006                                NaN                                no   \n",
       "34367                                NaN                                no   \n",
       "34380                                NaN                                no   \n",
       "34893                                NaN                                no   \n",
       "35269                                NaN                                no   \n",
       "35270                                NaN                                no   \n",
       "35484                                NaN                                no   \n",
       "35598                                NaN                                no   \n",
       "35599                                NaN                                no   \n",
       "35600                                NaN                                no   \n",
       "36473                                NaN                                no   \n",
       "36474                                NaN                                no   \n",
       "36475                                NaN                                no   \n",
       "\n",
       "      activityLink geography previous  \n",
       "480                               NaN  \n",
       "481                               NaN  \n",
       "483                               NaN  \n",
       "633                               NaN  \n",
       "1914                              NaN  \n",
       "3111                              NaN  \n",
       "3113                              NaN  \n",
       "3115                              NaN  \n",
       "3154                              NaN  \n",
       "3155                              NaN  \n",
       "3210                              NaN  \n",
       "3240                              NaN  \n",
       "4041                              NaN  \n",
       "4282                              NaN  \n",
       "4293                              NaN  \n",
       "4815                              NaN  \n",
       "4898                              NaN  \n",
       "4899                              NaN  \n",
       "4900                              NaN  \n",
       "5115                              NaN  \n",
       "5116                              NaN  \n",
       "5117                              NaN  \n",
       "5662                              NaN  \n",
       "5711                              NaN  \n",
       "5713                              NaN  \n",
       "5714                              NaN  \n",
       "6127                              NaN  \n",
       "6192                              NaN  \n",
       "6193                              NaN  \n",
       "6625                              NaN  \n",
       "...                               ...  \n",
       "31470                             NaN  \n",
       "31516                             NaN  \n",
       "31520                             NaN  \n",
       "31707                             NaN  \n",
       "31713                             NaN  \n",
       "32427                             NaN  \n",
       "32431                             NaN  \n",
       "32901                             NaN  \n",
       "32902                             NaN  \n",
       "32991                             NaN  \n",
       "33050                             NaN  \n",
       "33402                             NaN  \n",
       "33552                             NaN  \n",
       "33590                             NaN  \n",
       "33591                             NaN  \n",
       "33592                             NaN  \n",
       "33932                             NaN  \n",
       "34006                             NaN  \n",
       "34367                             NaN  \n",
       "34380                             NaN  \n",
       "34893                             NaN  \n",
       "35269                             NaN  \n",
       "35270                             NaN  \n",
       "35484                             NaN  \n",
       "35598                             NaN  \n",
       "35599                             NaN  \n",
       "35600                             NaN  \n",
       "36473                             NaN  \n",
       "36474                             NaN  \n",
       "36475                             NaN  \n",
       "\n",
       "[183 rows x 24 columns]"
      ]
     },
     "execution_count": 48,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "changes[mask]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "We need to check and make sure 1) all the old activity data is included in the 3.1 missing list, and 2) that the new activity data is included in the difference between 3.2 and 3.1."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import math"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "All old rows are in the set of missing 3.1 activities."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 94,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "renamed_activities_old = set(zip(\n",
    "        changes[mask]['activityName'], \n",
    "        changes[mask]['activityName previous'], \n",
    "        changes[mask]['exchange name previous'], \n",
    "        changes[mask]['geography'],\n",
    "        changes[mask]['exchange name']\n",
    "))\n",
    "\n",
    "find_in = data_31.difference(data_32)\n",
    "found_renamed_31 = {}\n",
    "\n",
    "for row in renamed_activities_old:\n",
    "    if not isinstance(row[1], str) and math.isnan(row[1]):\n",
    "        old_name = row[0]\n",
    "    else:\n",
    "        old_name = row[1]\n",
    "    new_name, old_rp, new_rp, location = row[0], row[2], row[4], row[3]\n",
    "\n",
    "    if (old_name, old_rp, location) in find_in:\n",
    "        found_renamed_31[(old_name, old_rp, location)] = (new_name, new_rp, location)\n",
    "    elif location == 'GLO' and (old_name, old_rp, \"RoW\") in find_in:\n",
    "        found_renamed_31[(old_name, old_rp, \"RoW\")] = (new_name, new_rp, \"RoW\")\n",
    "    else:\n",
    "        print(row)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 95,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "112"
      ]
     },
     "execution_count": 95,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(found_renamed_31)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Check to make sure we can find the new activities in 3.2:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "check_row = set(zip(\n",
    "    changes[mask]['activityName'], \n",
    "    changes[mask]['exchange name'], \n",
    "    changes[mask]['geography'])\n",
    ").difference(data_32)\n",
    "\n",
    "assert {x[2] for x in check_row} == {'GLO'}\n",
    "assert not {(x[0], x[1], 'RoW') for x in check_row}.difference(data_32)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Current status\n",
    "\n",
    "There are 11031 activities in ecoinvent 3.1 cutoff to upgrade to 3.2. Of these:\n",
    "\n",
    "* 10784 are no problem - we can find the same activity name, reference product, and location\n",
    "* 517 need more attention\n",
    "* Of these 517, 112 were simple renames\n",
    "\n",
    "Let's look at some of the remaining problematic activities:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 96,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('electricity production, photovoltaic, 3kWp slanted-roof installation, CdTe, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'MX'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'AU'),\n",
       " ('concrete production, for de-icing salt contact',\n",
       "  'concrete, for de-icing salt contact',\n",
       "  'CH'),\n",
       " ('wheat grain, feed production, Swiss integrated production',\n",
       "  'wheat grain, feed, Swiss integrated production',\n",
       "  'RoW'),\n",
       " ('electricity production, geothermal', 'electricity, high voltage', 'RU'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, CdTe, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'KR'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'MY'),\n",
       " ('planing, board, softwood, air dried',\n",
       "  'shaving, softwood, measured as dry mass',\n",
       "  'CH'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, ribbon-Si, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'ZA'),\n",
       " ('magnesium production, pidgeon process', 'magnesium', 'RoW'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'AT'),\n",
       " ('market for heat, for reuse in municipal waste incineration only',\n",
       "  'heat, for reuse in municipal waste incineration only',\n",
       "  'CA-NS'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'CN'),\n",
       " ('electricity production, hard coal', 'electricity, high voltage', 'SI'),\n",
       " ('electricity production, hard coal', 'electricity, high voltage', 'HU'),\n",
       " ('poor concrete production', 'poor concrete', 'RoW'),\n",
       " ('electricity, high voltage, import from HR',\n",
       "  'electricity, high voltage',\n",
       "  'HU'),\n",
       " ('electricity production, wind, 1-3MW turbine, offshore',\n",
       "  'electricity, high voltage',\n",
       "  'CN'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'RoW'),\n",
       " ('debarking, softwood',\n",
       "  'sawlog and veneer log, softwood, debarked, measured as solid wood',\n",
       "  'RoW'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'CA-BC'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, CIS, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'IN'),\n",
       " ('electricity production, hard coal', 'electricity, high voltage', 'RU'),\n",
       " ('electricity production, photovoltaic, 3kWp facade installation, single-Si, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'KR'),\n",
       " ('electricity voltage transformation from high to medium voltage, aluminium industry',\n",
       "  'electricity, medium voltage, aluminium industry',\n",
       "  'UN-EUROPE'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'CL'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-NB'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'SK'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'SA'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, multi-Si, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'KR'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'JP'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, multi-Si, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'IN'),\n",
       " ('heat and power co-generation, wood chips, 2000 kW, state-of-the-art 2014',\n",
       "  'heat, district or industrial, other than natural gas',\n",
       "  'RoW'),\n",
       " ('concrete production, sole plate and foundation',\n",
       "  'concrete, sole plate and foundation',\n",
       "  'CH'),\n",
       " ('electricity production, geothermal', 'electricity, high voltage', 'TR'),\n",
       " ('debarking, hardwood', 'bark chips, wet, measured as dry mass', 'CH'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'TZ'),\n",
       " ('treatment of coal gas, in power plant',\n",
       "  'heat, district or industrial, other than natural gas',\n",
       "  'CN'),\n",
       " ('diesel-electric generating set production 10MW production',\n",
       "  'diesel-electric generating set production 10MW',\n",
       "  'RoW'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'FR'),\n",
       " ('heat and power co-generation, wood chips, 2000 kW',\n",
       "  'heat, district or industrial, other than natural gas',\n",
       "  'RoW'),\n",
       " ('treatment of waste paint on wall, collection for final disposal',\n",
       "  'waste paint on wall',\n",
       "  'RoW'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'SPP'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, CIS, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'ZA'),\n",
       " ('electricity production, hydro, run-of-river',\n",
       "  'electricity, high voltage',\n",
       "  'CN'),\n",
       " ('market for heat, for reuse in municipal waste incineration only',\n",
       "  'heat, for reuse in municipal waste incineration only',\n",
       "  'CA-NB'),\n",
       " ('poor concrete production', 'poor concrete', 'CH'),\n",
       " ('uranium production, centrifuge, enriched 3.8%',\n",
       "  'uranium, enriched 3.8%, per separative work unit',\n",
       "  'RoW'),\n",
       " ('market for electricity, for reuse in municipal waste incineration only',\n",
       "  'electricity, for reuse in municipal waste incineration only',\n",
       "  'CA-PE'),\n",
       " ('electricity production, hard coal', 'electricity, high voltage', 'SK'),\n",
       " ('treatment of waste reinforced plasterboard, sorting plant',\n",
       "  'waste reinforced plasterboard',\n",
       "  'RoW'),\n",
       " ('transport, freight train, diesel', 'transport, freight train', 'RoW'),\n",
       " ('market for cleft timber, measured as dry mass',\n",
       "  'cleft timber, measured as dry mass',\n",
       "  'GLO'),\n",
       " ('treatment of waste glass pane in burnable frame, sorting plant',\n",
       "  'waste glass pane in burnable frame',\n",
       "  'RoW'),\n",
       " ('electricity production, photovoltaic, 3kWp flat-roof installation, multi-Si',\n",
       "  'electricity, low voltage',\n",
       "  'TW'),\n",
       " ('market for heat, for reuse in municipal waste incineration only',\n",
       "  'heat, for reuse in municipal waste incineration only',\n",
       "  'CA-PE'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, CIS, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'MX'),\n",
       " ('electricity production, photovoltaic, 3kWp facade installation, multi-Si, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'MX'),\n",
       " ('electricity production, photovoltaic, 3kWp facade installation, single-Si, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'MX'),\n",
       " ('treatment of wastewater, average, capacity 4.7E10l/year',\n",
       "  'wastewater, average',\n",
       "  'RoW'),\n",
       " ('electricity production, photovoltaic, 3kWp facade installation, multi-Si, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'ZA'),\n",
       " ('size-specific lorry transport to generic market for lorry transport',\n",
       "  'transport, freight, lorry, unspecified',\n",
       "  'RER'),\n",
       " ('debarking, softwood', 'bark chips, wet, measured as dry mass', 'CH'),\n",
       " ('planing, beam, hardwood, air dried',\n",
       "  'shaving, hardwood, measured as dry mass',\n",
       "  'RoW'),\n",
       " ('market for electricity, for reuse in municipal waste incineration only',\n",
       "  'electricity, for reuse in municipal waste incineration only',\n",
       "  'CA-NB'),\n",
       " ('rutile production, synthetic, 95% titanium dioxide',\n",
       "  'rutile, 95% titanium dioxide',\n",
       "  'GLO'),\n",
       " ('sawing, softwood', 'saw dust, wet, measured as dry mass', 'CH'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'NL'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, CdTe, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'IN'),\n",
       " ('treatment of coal gas, in power plant', 'electricity, high voltage', 'CN'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, CIS, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'KR'),\n",
       " ('electricity production, photovoltaic, 3kWp facade installation, multi-Si, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'KR'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'TRE'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, multi-Si, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'MX'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CA-ON'),\n",
       " ('sawing, hardwood', 'saw dust, wet, measured as dry mass', 'CH'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'DK'),\n",
       " ('planing, beam, softwood, kiln dried',\n",
       "  'shaving, softwood, measured as dry mass',\n",
       "  'RoW'),\n",
       " ('treatment of waste plastic plaster, sorting plant',\n",
       "  'waste plastic plaster',\n",
       "  'RoW'),\n",
       " ('electricity production, geothermal', 'electricity, high voltage', 'MX'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, a-Si, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'AU'),\n",
       " ('market for diesel-electric generating set production 10MW',\n",
       "  'diesel-electric generating set production 10MW',\n",
       "  'GLO'),\n",
       " ('protein pea, feed production, Swiss integrated production',\n",
       "  'protein pea, feed, Swiss integrated production',\n",
       "  'RoW'),\n",
       " ('electricity production, photovoltaic, 3kWp facade installation, multi-Si, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'TW'),\n",
       " ('electricity production, wind, 2.3MW turbine, precast concrete tower, onshore',\n",
       "  'electricity, high voltage',\n",
       "  'RoW'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'DE'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, a-Si, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'MY'),\n",
       " ('electricity production, geothermal', 'electricity, high voltage', 'AT'),\n",
       " ('electricity, from municipal waste incineration to generic market for electricty, medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'ES'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, ribbon-Si, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'MX'),\n",
       " ('electricity production, photovoltaic, 3kWp slanted-roof installation, CdTe, laminated, integrated',\n",
       "  'electricity, low voltage',\n",
       "  'ZA'),\n",
       " ('market for heat, air-water heat pump 10kW',\n",
       "  'heat, air-water heat pump 10kW',\n",
       "  'GLO'),\n",
       " ('electricity voltage transformation from high to medium voltage',\n",
       "  'electricity, medium voltage',\n",
       "  'CN'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'UA'),\n",
       " ('market for wood preservation, oscillating pressure method, organic salt, Cr-free, outdoor use, ground contact, as(...)_5',\n",
       "  'wood preservation, oscillating pressure method, organic salt, Cr-free, outdoor use, ground contact',\n",
       "  'GLO'),\n",
       " ('electricity production, photovoltaic, 3kWp facade installation, multi-Si, panel, mounted',\n",
       "  'electricity, low voltage',\n",
       "  'IN'),\n",
       " ('electricity production, natural gas, aluminium industry',\n",
       "  'electricity, high voltage, aluminium industry',\n",
       "  'UN-EUROPE'),\n",
       " ('electricity, high voltage, import from Québec',\n",
       "  'electricity, high voltage',\n",
       "  'NPCC, US only'),\n",
       " ('electricity production, natural gas, at conventional power plant',\n",
       "  'electricity, high voltage',\n",
       "  'SI'),\n",
       " ('electricity production, geothermal', 'electricity, high voltage', 'TH')]"
      ]
     },
     "execution_count": 96,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "list(data_31.difference(data_32).difference(set(found_renamed_31)))[:100]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Write changes"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 92,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import csv"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 97,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "with open('ecoinvent 31-32.csv', 'w') as csvfile:\n",
    "    writer = csv.writer(csvfile)\n",
    "    \n",
    "    writer.writerow([\"Old activity name\", \"Reference product\", \"Location\",\n",
    "                     \"New activity name\", \"Reference product\", \"Location\"])\n",
    "    \n",
    "    data = []\n",
    "    \n",
    "    for k, v in found_renamed_31.items():\n",
    "        data.append(list(k) + list(v))\n",
    "        \n",
    "    for elem in data_31.difference(data_32).difference(set(found_renamed_31)):\n",
    "        data.append(list(elem))\n",
    "        \n",
    "    data.sort()\n",
    "    \n",
    "    for line in data:\n",
    "        writer.writerow(line)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 98,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "with open('ecoinvent 32.csv', 'w') as csvfile:\n",
    "    writer = csv.writer(csvfile)\n",
    "    writer.writerow([\"Activity name\", \"Reference product\", \"Location\"])\n",
    "    for line in sorted(data_32):\n",
    "        writer.writerow(line)"
   ]
  },
  {
   "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.5.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
