Skip to content

Commit 2b319b1

Browse files
committed
make sure to sort index from splitted blocks of day ahead prices before truncating
1 parent 6b3efa5 commit 2b319b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entsoe/entsoe.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
warnings.filterwarnings('ignore', category=XMLParsedAsHTMLWarning)
2424

2525
__title__ = "entsoe-py"
26-
__version__ = "0.6.13"
26+
__version__ = "0.6.14"
2727
__author__ = "EnergieID.be, Frank Boerman"
2828
__license__ = "MIT"
2929

@@ -1231,7 +1231,7 @@ def query_day_ahead_prices(
12311231
end=end+pd.Timedelta(days=1),
12321232
resolution=resolution
12331233
)
1234-
series = series.tz_convert(area.tz)
1234+
series = series.tz_convert(area.tz).sort_index()
12351235
series = series.truncate(before=start, after=end)
12361236
# because of the above fix we need to check again if any valid data exists after truncating
12371237
if len(series) == 0:

0 commit comments

Comments
 (0)