As energy consumption has grown over the years, the impacts to the environment has grown significantly as well. Through this analysis, we wanted to get a better understanding of the relationship between energy consumption and the carbon dioxide emissions for various sectors and states as reported by the EIA.
Source data is available through the EIA open data API
CO2 Emissions by State - All Fuels
The EIA provides 4 different sectors for energy consumption and emissions – Industrial, Transportation, Residential and Commercial.
• Industrial represents facilities and equipment used for manufacturing, agriculture, mining and construction.
• Transportation includes vehicles to transport people or goods such as cars, trucks, buses, motorcycles, trains, aircraft, boats, barges, and ships.
• Residential includes homes and apartments.
• Commercial sector includes offices, malls, stores, schools, hospitals, hotels, warehouses, restaurants and places of worship and public assembly.
There is a fifth sector for electric power which we did not include in the analysis as this electric sector consumes primary energy to generate most of the electricity the other four sectors consume.
You will need: Python, Pandas, Requests, Numpy, Matplotlib, Scipy, EIA API key, and Plotly
plotly.py may be installed using pip...
$ pip install plotly==4.0.0
or conda.
$ conda install -c plotly plotly=4.0.0
For Energy Consumption click here
For State CO2 Emissions click here
For CO2 Emissions by Sector click here
You will also need this file
and this file
The full write up of findings can be found here
A Presentation for this project can be found here
State CO2 and Write Up
Energy Consumption by Sector and Presentation
CO2 Emission by Sector and Emission vs Consumption