MCPcopy
hub / github.com/pathwaycom/pathway / without

Method without

python/pathway/internals/table_slice.py:81–88  ·  view source on GitHub ↗
(self, *cols: str | ColumnReference)

Source from the content-addressed store, hash-verified

79 @trace_user_frame
80 @check_arg_types
81 def without(self, *cols: str | ColumnReference) -> TableSlice:
82 mapping = self._mapping.copy()
83 for col in cols:
84 colname = self._normalize(col)
85 if colname not in mapping:
86 raise KeyError(f"Column name {repr(colname)} not found in a {self}.")
87 mapping.pop(colname)
88 return TableSlice(mapping, self._table)
89
90 @trace_user_frame
91 @check_arg_types

Callers

nothing calls this directly

Calls 3

_normalizeMethod · 0.95
TableSliceClass · 0.85
copyMethod · 0.45

Tested by

no test coverage detected