Skip to content

EntsoePandasClient query_installed_generation_capacity returns nan values #438

@RenaudBruneliere

Description

@RenaudBruneliere

Hi,

Since a few days, I am bumping into an issue when querying the installed generation capacity. Here is some short repeatable code snippet (python 3.11):

import pandas as pd
pd.version
Out[12]: '2.3.0'
import entsoe
entsoe.version
Out[15]: '0.7.4'

from entsoe import EntsoePandasClient, Area
start = pd.Timestamp('2023-01-01', tz='UTC')
end = pd.Timestamp('2024-01-01', tz='UTC')
client = EntsoePandasClient(api_key='my_api_key')
df = client.query_installed_generation_capacity(country_code=Area.AT, start=start, end=end)
df
Out[16]:
Biomass ... Wind Onshore
2023-01-02 00:00:00+01:00 NaN ... NaN

All values are NaN... Are you getting the same ?
For me the problem comes from https://github.com/EnergieID/entsoe-py/blob/master/entsoe/series_parsers.py#L111 that resamples on a date_range excluding the original data as the original data timestamp is at 2022-12-31 23:00:00, so outside the [start, end] interval.

Renaud

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions