diff --git a/saqc/funcs/resampling.py b/saqc/funcs/resampling.py index 5804edcbd6a3a99fbabd671050b5a39b7e4d9643..1623f50480d046727c4531a8626b0512f469867c 100644 --- a/saqc/funcs/resampling.py +++ b/saqc/funcs/resampling.py @@ -413,8 +413,7 @@ def _shift( # The last 2 lines left the history in an unstable state, Also we want to # append a dummy column, that represent the 'shift' in the history. - #history.hist.loc[:, :0] = UNFLAGGED - history.hist[0] = UNFLAGGED + history.hist.loc[:, :0] = UNFLAGGED dummy = pd.Series(UNTOUCHED, index=datcol.index, dtype=float) history.append(dummy, force=True)