MCPcopy Index your code
hub / github.com/treeverse/dvc / insert

Method insert

dvc/compare.py:72–74  ·  view source on GitHub ↗
(self, index: int, value: Sequence["CellT"])

Source from the content-addressed store, hash-verified

70 self.append(row)
71
72 def insert(self, index: int, value: Sequence["CellT"]) -> None:
73 for val, col in self._iter_col_row(value):
74 col.insert(index, val)
75
76 def __iter__(self) -> Iterator[list["CellT"]]:
77 return map(list, zip(*self.columns))

Callers 4

test_list_operationsFunction · 0.95
test_fill_valueFunction · 0.95
test_context_listFunction · 0.45
test_run_stage_dryFunction · 0.45

Calls 1

_iter_col_rowMethod · 0.95

Tested by 4

test_list_operationsFunction · 0.76
test_fill_valueFunction · 0.76
test_context_listFunction · 0.36
test_run_stage_dryFunction · 0.36