Project 15: Analyzing Industry Carbon Emissions

Factories creating emissions Photo by Maxim Tolchinskiy on Unsplash

Greenhouse gas emissions attributable to products—from food to sneakers to appliances—make up more than 75% of global emissions. –The Carbon Catalogue

Our data, which is publicly availably on nature.com, contains product carbon footprints (PCFs) for various companies. PCFs are the greenhouse gas emissions attributable to a given product, measured in CO2 (carbon dioxide equivalent).

This data is stored in a PostgreSQL database containing one table, prouduct_emissions, which looks at PCFs by product as well as the stage of production these emissions occured in. Here’s a snapshot of what product_emissions contains in each column:

product_emissions

fielddata_type
idVARCHAR
yearINT
product_nameVARCHAR
companyVARCHAR
countryVARCHAR
industry_groupVARCHAR
weight_kgNUMERIC
carbon_footprint_pcfNUMERIC
upstream_percent_total_pcfVARCHAR
operations_percent_total_pcfVARCHAR
downstream_percent_total_pcfVARCHAR

You’ll use this data to examine the carbon footprint of each industry in the dataset!

In [5]:

-- Start coding here... 
SELECT *
FROM product_emissions;

Out[5]:

idyearproduct_namecompanycountryindustry_groupweight_kgcarbon_footprint_pcfupstream_percent_total_pcfoperations_percent_total_pcfdownstream_percent_total_pcf
010056-1-20142014Frosted Flakes(R) CerealKellogg CompanyUSAFood, Beverage & Tobacco0.7485002.0057.50%30.00%12.50%
110056-1-20152015Frosted Flakes, 23 oz, produced in Lancaster, …Kellogg CompanyUSAFood & Beverage Processing0.7485002.0057.50%30.00%12.50%
210222-1-20132013Office ChairKNOLL INCUSACapital Goods20.68000072.5480.63%17.36%2.01%
310261-1-20172017Multifunction PrintersKonica Minolta, Inc.JapanTechnology Hardware & Equipment110.0000001488.0030.65%5.51%63.84%
410261-2-20172017Multifunction PrintersKonica Minolta, Inc.JapanTechnology Hardware & Equipment110.0000001818.0025.08%4.51%70.41%
8619298-2-20142014Desktop CPUIntel CorporationUSASemiconductors & Semiconductor Equipment0.40823314.0032.14%54.29%13.57%
8629298-3-20132013Mobile CPUIntel CorporationUSATechnology Hardware & Equipment0.4082337.0028.57%71.43%0.00%
8639298-3-20142014Mobile CPUIntel CorporationUSASemiconductors & Semiconductor Equipment0.4082337.0031.43%54.29%14.29%
8649792-1-20172017Complete catalyst system for diesel-powered pa…Johnson MattheyUnited KingdomMaterials2.000000188.00N/a (product with insufficient stage-level data)N/a (product with insufficient stage-level data)N/a (product with insufficient stage-level data)
8659792-2-20172017Three-way Catalyst for gasoline-powered passen…Johnson MattheyUnited KingdomMaterials2.00000063.00N/a (product with insufficient stage-level data)N/a (product with insufficient stage-level data)N/a (product with insufficient stage-level data)

866 rows × 11 columns

In [17]:

-- industry_group
-- count_industry
-- total_industry_footprint
-- recent years
-- highest emitting industries

SELECT industry_group, COUNT(company) AS count_industry, ROUND(SUM(carbon_footprint_pcf),1) as total_industry_footprint
FROM product_emissions pe
WHERE pe.year IN (SELECT MAX(pe.year) FROM product_emissions pe)
GROUP BY industry_group
ORDER BY  total_industry_footprint DESC;

Out[17]:

industry_groupcount_industrytotal_industry_footprint
0Materials11107129.0
1Capital Goods494942.7
2Technology Hardware & Equipment2221865.1
3Food, Beverage & Tobacco223161.5
4Commercial & Professional Services2740.6
5Software & Services1690.0

Leave a comment