Script to query ENTSO-E database using entsoe-py for production data and compute corresponding emissions to plot this kind of graphic:
See all plots available here: plots.
To make a new plot:
pip install pandas
pip install matplotlib
pip install entsoe-py
cd path/to/folder
git clone <repo_name>
- open
data_analyis_request_ENTSO_E.py
- replace
${{ secrets.TOKEN_API }}
with your API key - for yearly plots:
- change range
- comment
for month in range(1,13):
- choose
start = pd.Timestamp(year=year, month=1, day=1, tz='Europe/Brussels')
andend = pd.Timestamp(year=year, month=12, day=31, tz='Europe/Brussels')
- for monthly plots:
- uncomment
for month in range(1,13):
- choose
start = pd.Timestamp(year=year, month=month, day=1, tz='Europe/Brussels')
andend = pd.Timestamp(year=year, month=month, day=start.daysinmonth, tz='Europe/Brussels')
- uncomment
- choose countries in
country_code
(see list here)
Wait... and find your new plots in /plots