You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I seem to have a problem with the "query_installed_generation_capacity" command. If i query for a timeperiod that spans through several years i usually get a dataframe with the installed capacities for the years queried. However, right now i only get the first year i queried, even though the years have different values between them. For example:
Input:
from entsoe import EntsoePandasClient
import pandas as pd
import os
client = EntsoePandasClient(api_key = os.getenv("ENTSOE"))
start = pd.TimeStamp(year=2015, month=1, day=1)
end = pd.TimeStamp(year=2025, month=1, day=1)
country_code = "BE"
df_capacity = client.query_installed_generation_capacity(country_code, start = start, end = end)
I would refrain from queries that span more than one year, and even then I would frequently go to half-a-year queries if needed. The queries you tried with 5-10 years are most likely too much for the API in most cases.
Hello! I seem to have a problem with the "query_installed_generation_capacity" command. If i query for a timeperiod that spans through several years i usually get a dataframe with the installed capacities for the years queried. However, right now i only get the first year i queried, even though the years have different values between them. For example:
Input:
Output:
df_capacity_2015_2025.csv
,Biomass,Fossil Gas,Fossil Oil,Hydro Pumped Storage,Hydro Run-of-river and poundage,Nuclear,Other,Solar,Waste,Wind Offshore,Wind Onshore
2015-01-01 00:00:00+01:00,573.0,6753.0,229.0,1308.0,162.0,5943.0,,2818.0,358.0,712.0,1249.0
If i query starting from another year i get the the data from that starting year.
Input:
Output:
df_capacity_2020_2025.csv
,Biomass,Fossil Gas,Fossil Oil,Hydro Pumped Storage,Hydro Run-of-river and poundage,Nuclear,Other,Solar,Waste,Wind Offshore,Wind Onshore
2020-01-01 00:00:00+01:00,647.0,6799.0,246.0,1308.0,175.0,5943.0,19.0,3887.0,362.0,2254.0,2416.0
Does this happen to any one of you too?
The text was updated successfully, but these errors were encountered: