Working with the EIA.gov API

Section I: Introduction, Configuration and Setup

Section II: Aggregating EIA Data with Python

Section III: Cleaning, Visualization with Pandas, Matplotlib

Section IV: Understanding SVG Files with BeautifulSoup

Section V: Geoplotting State-Level US Data to Create Heatmaps

Creating simple heatmaps

The U.S. Energy Information Administration has a great website and is a go-to resource for anything energy data-related. The site has gone through a number of design changes, and provides a great GUI tool to explore various datasets, however to really dig into historical data, it's easier to bring data in from the back. Luckily, EIA has developed an API to allow for easy access to historical data with Python.

Creating a GIF with Adobe Photoshop/Illustrator

Timelapse heatmap of renenwable energy by state; darker green indicates higher percentange in energy portfolios.


← Back