diff --git a/quantipy/core/dataset.py b/quantipy/core/dataset.py index f382a9d4d..c95f0b690 100644 --- a/quantipy/core/dataset.py +++ b/quantipy/core/dataset.py @@ -6943,6 +6943,7 @@ def filter(self, alias, condition, inplace=False): Filter the DataSet using a Quantipy logical expression. """ data = self._data.copy() + data.index = pd.Index(range(0, len(data.index))) filter_idx, _ = get_logic_index(pd.Series(data.index), condition, data) filtered_data = data.iloc[filter_idx, :] if inplace: