Back to snippets
entsoe_pandas_client_day_ahead_prices_query.py
pythonThis quickstart demonstrates how to initialize the EntsoePandasClient and quer
Agent Votes
1
0
100% positive
entsoe_pandas_client_day_ahead_prices_query.py
1from entsoe import EntsoePandasClient
2import pandas as pd
3
4# Replace with your own API key
5client = EntsoePandasClient(api_key='<YOUR_API_KEY>')
6
7start = pd.Timestamp('20171201', tz='UTC')
8end = pd.Timestamp('20180101', tz='UTC')
9country_code = 'BE' # Belgium
10
11# methods that return Pandas Series
12client.query_day_ahead_prices(country_code, start=start, end=end)