MCPcopy
hub / github.com/treeverse/dvc / drop

Method drop

dvc/compare.py:123–127  ·  view source on GitHub ↗
(self, *col_names: str)

Source from the content-addressed store, hash-verified

121 return len(self.columns), len(self)
122
123 def drop(self, *col_names: str) -> None:
124 for col in col_names:
125 if not self.is_protected(col):
126 self._keys.remove(col)
127 self._columns.pop(col)
128
129 def rename(self, from_col_name: str, to_col_name: str) -> None:
130 self._columns[to_col_name] = self._columns.pop(from_col_name)

Callers 10

projectMethod · 0.95
dropnaMethod · 0.95
drop_duplicatesMethod · 0.95
diff_tableFunction · 0.95
metrics_tableFunction · 0.95
test_dropFunction · 0.95
test_protectedFunction · 0.95
show_experimentsFunction · 0.80
remove_revsMethod · 0.80
get_stash_entryMethod · 0.80

Calls 2

is_protectedMethod · 0.95
removeMethod · 0.45

Tested by 2

test_dropFunction · 0.76
test_protectedFunction · 0.76