Commit b827d58f authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Copy/re-create data freme when filtering by subjects. Avoids pandas copy

warning in subsequent operations
parent 047e5bae
......@@ -372,7 +372,7 @@ def filterSubjects(data,
if mask is None: mask = ~exclmask
else: mask[exclmask] = 0
if mask is not None: return data.loc[mask, :]
if mask is not None: return data.drop(data.index[mask])
else: return data
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment