parquetWrite
Write an Parquet file from a table.
Syntax
parquetWrite(filename, data)
Arguments
- filename
A string specifying the path to the file to write to.
- data
A table containing the data to write to the Parquet file.
Description
Write a .parquet or .arrow file from a table.
Each column of the file corresponds to a column of the table.
The name of the column are the same as in the table.
Examples
a = ["A"; "B"; "C"]; b = hours([1;3;5]); c = rand(3,1); t = table(a, b, c, "VariableNames", ["string", "hours", "double"]); parquetWrite(fullfile(TMPDIR, "data.parquet"), t) parquetRead(fullfile(TMPDIR, "data.parquet")) // t = [3x3 table] // // string hours double // ______ ________ _________ // // A 01:00:00 0.2113249 // B 03:00:00 0.7560439 // C 05:00:00 0.0002211
See also
- parquetRead — Read an Parquet or Arrow file and return a table.
History
| Version | Description |
| 2026.1.0 | Function added. |
| Report an issue | ||
| << parquetRead | Spreadsheet | read_csv >> |