diff --git a/lisa/datautils.py b/lisa/datautils.py index ee9180de9661a9a27e80ea13d2db465f8a472a6c..9dd6d163a867b60c131c21b7d753c0ae9e5f1c8f 100644 --- a/lisa/datautils.py +++ b/lisa/datautils.py @@ -609,7 +609,7 @@ def _polars_refit_index(data, window): # "end" had a lower value than the unclipped index, we get rid of all # the excess rows. data = data.filter( - (index_col != end) | (index_col.diff() != 0) + (index_col != end) | (index_col != index_col.shift(1)) ) return data