saco.Dataset.write_tables

Dataset.write_tables(output_folder: Path | str, overwrite: bool = False, table_names: List[str] = None, output_format: str = 'parquet', zip_name: str = None, decimal_places: float = None)

Write data tables to parquet or (zipped) csv files.

Parameters:
  • output_folder – Path to output folder where files should be saved.

  • overwrite – Whether to overwrite any existing files in output_folder.

  • table_names – Tables to write (using name attribute of tables, rather than short_name attribute).

  • output_format – Either ‘parquet’ or ‘zip-csv’ (currently).

  • zip_name – Optional name of zip archive if output_format is ‘zip-csv’. If not provided zip archive name will default to ‘dataset.zip’.

  • decimal_places – Number of decimal places to use in rounding. If None (default) then no rounding is applied.