export_results

export_results(output: str | Path, results: list[dict]) None[source]

Export a list of dictionaries to a CSV or TSV file.

The output format is determined by the file extension: - .tsv: Tab-separated values - .csv: Comma-separated values

Parameters:
  • output – Path to the output file.

  • results – List of dictionaries to export as rows.

Raises:

DataExportError – If the export fails.