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
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:
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')
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:
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())`
The text was updated successfully, but these errors were encountered: