Skip to content
Snippets Groups Projects
Commit 76f42db6 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

case distinction for series and singlevalues in Setflags doesnt seem to be circumventable

parent 8f6e996e
No related branches found
No related tags found
No related merge requests found
......@@ -66,8 +66,10 @@ class DmpFlagger(BaseFlagger):
flags = self._reduceColumns(flags)
mask = flags[FlagFields.FLAG] < flag
flags.loc[mask, self.flag_fields] = flag, cause, comment
if isinstance(flag, pd.Series):
flags.loc[mask, self.flag_fields] = flag[mask], cause, comment
else:
flags.loc[mask, self.flag_fields] = flag, cause, comment
return flags.values
def isFlagged(self, flags, flag=None, comparator=">"):
......
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