MCPcopy Create free account
hub / github.com/treeverse/dvc / export

Method export

dvc/database.py:70–73  ·  view source on GitHub ↗
(self, file: StrOrBytesPath, format: str = "csv", progress=noop)

Source from the content-addressed store, hash-verified

68 df.to_json(f, orient="records")
69
70 def export(self, file: StrOrBytesPath, format: str = "csv", progress=noop): # noqa: A002
71 if format == "json":
72 return self.to_json(file, progress=progress)
73 return self.to_csv(file, progress=progress)
74
75
76@dataclass

Callers 1

exportMethod · 0.95

Calls 2

to_jsonMethod · 0.95
to_csvMethod · 0.95

Tested by

no test coverage detected