Skip to content
Snippets Groups Projects
Commit a09fd07f authored by Bert Palm's avatar Bert Palm 🎇
Browse files

fixed refactor bug in scores.py

parent 64d78ddc
No related branches found
No related tags found
1 merge request!231new Flagger and Stuff
......@@ -8,6 +8,7 @@ import pandas as pd
from dios import DictOfSeries
from saqc.common import *
from saqc.core.register import register
from saqc.flagger import Flagger
from saqc.lib import ts_operators as ts_ops
......@@ -155,11 +156,10 @@ def assignKNNScore(
score_ser[partition.index] = resids
# this unconditionally overwrite a column,
# may we should fire a warning ? -- palmb
# todo: this unconditionally overwrite a column, may we should fire a warning ? -- palmb
if target_field in flagger.columns:
flagger.drop(target_field)
flagger[target_field] = score_ser
flagger[target_field] = pd.Series(UNFLAGGED, index=score_ser.index, dtype=float)
data[target_field] = score_ser
return data, flagger
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment