From 859cb7a8f78452738fa9642dde38850e433e80db Mon Sep 17 00:00:00 2001 From: Tijoxa <92037181+Tijoxa@users.noreply.github.com> Date: Fri, 15 Nov 2024 16:48:34 +0100 Subject: [PATCH] fix decorator year_limited --- entsoe/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entsoe/decorators.py b/entsoe/decorators.py index a952553..8776e05 100644 --- a/entsoe/decorators.py +++ b/entsoe/decorators.py @@ -136,7 +136,7 @@ def year_wrapper(*args, start=None, end=None, **kwargs): else: interval_mask = ( (frame.index <= _end) - & (frame.index > _start) + & (frame.index > frames[-1].index[-1]) ) frame = frame.loc[interval_mask] except NoMatchingDataError: