Table.download
Table.download([path, { format, overwrite, maxParallelization, onProgress, signal }]) → Promise<string[]>
Exports the table's data in a particular format, and downloads the resulting file(s). Only available in Node.js — in the browser, read the data with toArrowTable() or toArrowBatchIterator() instead.
await table.download('./data/', { format: 'parquet' });Parameters:
path : string, optional
The path of the downloaded file, if the export consists of a single file. Otherwise (or if the path is an existing directory, or ends with a /), the directory to download into. Defaults to the current working directory.
format : string, default 'csv'
The export format: one of csv, ndjson, parquet, avro, stata, sas, or spss.
overwrite : boolean, default false
Whether to replace existing files.
maxParallelization : number, default 16
The number of files to download at once. Defaults to the maxParallelization configuration, if it's set.
onProgress : function, optional
Called with the progress, as { stage: 'exporting', percentCompleted } while the export is running, and then as { stage: 'downloading', bytesDownloaded, totalBytes, filesDownloaded, totalFiles }.
signal : AbortSignal, optional
Returns: Promise<string[]>, the paths of the downloaded files.
Was this helpful?

