Skip to content
Snippets Groups Projects
Commit 1b956e77 authored by David Schäfer's avatar David Schäfer
Browse files

removed unnecessary call

parent c3f5bd19
No related branches found
No related tags found
No related merge requests found
......@@ -165,8 +165,8 @@ class BaseFlagger(ABC):
) -> PandasT:
field = field or slice(None)
locator = [l for l in (loc, iloc, slice(None)) if l is not None][0]
flags = self._flags[toSequence(field)]
mask = pd.Series(data=np.zeros(len(flags), dtype=bool), index=flags.index)
index = self._flags.index
mask = pd.Series(data=np.zeros(len(index), dtype=bool), index=index)
mask[locator] = True
return mask
......
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