Tutorial
python-eia: US energy data smooth downloads
A new Python library to quickly access and preprocess US energy data from the EIA API—perfect for making real-world charts and forecasts.
Hey everyone,
I just published a Python library that makes it super easy to download and work with US energy data from the EIA API. If you’ve seen those cool charts about California’s energy mix (like the one from The Economist showing how batteries are changing things), you can now make your own in just a few lines of code.

To get started:
Install the package:
pip install python-eia Then, follow the step-by-step instructions in the example notebook:
examples/1_Generic/steps/1_Download.ipynb
I’ll also be using this tool in my upcoming LinkedIn Learning course to show how to build real-world forecasts with time series data. Feel free to check it out and start playing with real energy data right away!
Enjoy!
— Jesus