Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions xdeps/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,9 @@ def match_not(self, regexp ,col=None):
"""Get a mask of rows not matching the regular expression on the column (default is index)."""
col=self.table._index if col is None else col
indices=self.table._get_col_regexp_indices(regexp, col)
indices = np.setdiff1d(np.arange(len(self.table)), indices)
return self.table._select_rows(indices)
full_mask = np.ones(len(self.table), dtype=bool)
full_mask[indices] = False
return self.table._select_rows(full_mask)


class _ColView:
Expand Down