(self, file: StrOrBytesPath, format: str = "csv", progress=noop)
| 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 |