Skip to content

Day Ahead Prices is missing 1 row due to DST #388

@timgitty212

Description

@timgitty212

def ENTSO_fetch(start, end, country_code):
client = EntsoePandasClient(api_key)

df_temp = client.query_day_ahead_prices(country_code, start=start, end=end)
return df_temp

start_market_date = pd.to_datetime('2023-12-31 23:00:00').tz_localize('UTC')
end_market_date = pd.to_datetime('2024-12-31 22:00:00').tz_localize('UTC')

df_market_price = ENTSO_fetch(start_market_date, end_market_date, country_code)

2024-01-01 00:00:00+01:00 53.79
2024-01-01 01:00:00+01:00 48.98
2024-01-01 02:00:00+01:00 27.45
2024-01-01 03:00:00+01:00 24.48
2024-01-01 04:00:00+01:00 24.01
...
2024-12-31 19:00:00+01:00 31.10
2024-12-31 20:00:00+01:00 29.37
2024-12-31 21:00:00+01:00 24.08
2024-12-31 22:00:00+01:00 20.62
2024-12-31 23:00:00+01:00 21.94
Length: 8783, dtype: float64

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