EnergieID / entsoe-py

Python client for the ENTSO-E API (european network of transmission system operators for electricity)
MIT License
428 stars 188 forks source link

query_installed_generation_capacity returns empty dataframe #289

Closed mlibsig closed 9 months ago

mlibsig commented 9 months ago

Hi all,

I am trying to retrieve installed generation capacity using this code:

start = pd.to_datetime('2014-01-01').tz_localize('UTC') end = pd.to_datetime('2024-01-15').tz_localize('UTC')

client = EntsoePandasClient(api_key=_entsoe_api_key) tmp = client.query_installed_generation_capacity(start=start,end=end,country_code=lookup_area('DE'),psr_type=None)

I tried with a few different countries, they all returns empty dataframe. Anyone has any idea how to fix this?

fboerman commented 9 months ago

Please decrease the timeframe you are querying. For example do it per year. I think that fixes this.

-------- Original Message -------- On 15 Jan 2024, 11:23, mlibsig wrote:

Hi all,

I am trying to retrieve installed generation capacity using this code:

start = pd.to_datetime('2014-01-01').tz_localize('UTC') end = pd.to_datetime('2024-01-15').tz_localize('UTC')

client = EntsoePandasClient(api_key=_entsoe_api_key) tmp = client.query_installed_generation_capacity(start=start,end=end,country_code=lookup_area('DE'),psr_type=None)

I tried with a few different countries, they all returns empty dataframe. Anyone has any idea how to fix this?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

jpaduart commented 9 months ago

Installed capacity is published with a very specific timestamp, around on the 31st of December (or 1st of January). Try to query from Dec 15th to Jan 15th. Extending the query over several years should be fast & work like a charm.

Johan.

Op ma 15 jan 2024 om 11:34 schreef fboerman @.***>:

Please decrease the timeframe you are querying. For example do it per year. I think that fixes this.

-------- Original Message -------- On 15 Jan 2024, 11:23, mlibsig wrote:

Hi all,

I am trying to retrieve installed generation capacity using this code:

start = pd.to_datetime('2014-01-01').tz_localize('UTC') end = pd.to_datetime('2024-01-15').tz_localize('UTC')

client = EntsoePandasClient(api_key=_entsoe_api_key) tmp = client.query_installed_generation_capacity(start=start,end=end,country_code=lookup_area('DE'),psr_type=None)

I tried with a few different countries, they all returns empty dataframe. Anyone has any idea how to fix this?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/EnergieID/entsoe-py/issues/289#issuecomment-1891832584, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIO2LUJYYFBSPRG3MVINVH3YOUA4BAVCNFSM6AAAAABB3A4ASSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJRHAZTENJYGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mlibsig commented 9 months ago

All seems okay now, changed initial date some date in december