-
Notifications
You must be signed in to change notification settings - Fork 233
Description
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