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

comment added

parent aa1fdab7
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,8 @@ class BaseFlagger:
def initFlags(self, data: pd.DataFrame) -> pd.DataFrame:
out = pd.DataFrame(data=self.flags[0], index=data.index, columns=data.columns)
# astype conversion of return Dataframe performed seperately, because pd.DataFrame(...,dtype=self.flags)
# wont give you categorical flag objects:
return out.astype(self.flags)
def isFlagged(self, flags: ArrayLike, flag: T = None) -> ArrayLike:
......
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