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

Method row_from_dict

dvc/compare.py:157–166  ·  view source on GitHub ↗
(self, d: Mapping[str, "CellT"])

Source from the content-addressed store, hash-verified

155 self._keys.append(name)
156
157 def row_from_dict(self, d: Mapping[str, "CellT"]) -> None:
158 keys = self.keys()
159 for key in d:
160 if key not in keys:
161 self.add_column(key)
162
163 row: list[CellT] = [
164 with_value(d.get(key), self._fill_value) for key in self.keys()
165 ]
166 self.append(row)
167
168 def render(self, **kwargs: Any):
169 from dvc.ui import ui

Callers 2

metrics_tableFunction · 0.95
test_row_from_dictFunction · 0.95

Calls 5

keysMethod · 0.95
add_columnMethod · 0.95
appendMethod · 0.95
with_valueFunction · 0.85
getMethod · 0.45

Tested by 1

test_row_from_dictFunction · 0.76