Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different country codes give Inconsistent dataframe structure in pandas client client.query_generation() #365

Open
morrisonmaxw opened this issue Nov 14, 2024 · 1 comment

Comments

@morrisonmaxw
Copy link

Hi I am getting a different dataframe response structure when changing country codes is this expected behaviour? It is causing bugs in my data transformation logic and has taken quite a while to discover the problem!

Some country codes like 'BE' return a multi index dataframe with a second header for 'Actual Aggregate/ Actual consumption' while others like 'DK' are just a flat table and do not contain this information:

Entsoe generation inconsistent output

Here is an example:

`from entsoe import EntsoePandasClient
import pandas as pd

client = EntsoePandasClient(api_key='123')

start = pd.Timestamp('20241101', tz='UTC')
end = pd.Timestamp('20241106', tz='UTC')

Entsoe_PandasClient_request_BE = client.query_generation('BE', start=start, end=end)
print(Entsoe_PandasClient_request_BE.head())
Entsoe_PandasClient_request_DK = client.query_generation('DK', start=start, end=end)
print(Entsoe_PandasClient_request_DK.head())`

@morrisonmaxw
Copy link
Author

morrisonmaxw commented Nov 14, 2024

I see this has already been raised in issue 328
Hopefully the extra detail here is helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant