diff --git a/assume/common/fast_pandas.py b/assume/common/fast_pandas.py index 78563a9e..8071a37d 100644 --- a/assume/common/fast_pandas.py +++ b/assume/common/fast_pandas.py @@ -129,7 +129,7 @@ def __getitem__(self, item: int | slice): sliced_dates = self._date_list[start_idx:stop_idx:step] if not sliced_dates: - raise ValueError("Slice resulted in an empty range") + return [] return FastIndex( start=sliced_dates[0], end=sliced_dates[-1], freq=self._freq