parquetRead
Read an Parquet or Arrow file and return a table.
Syntax
result = parquetRead(filename)
Arguments
- filename
A string specifying the path to the file to read.
Description
Read a .parquet or .arrow file and return a table containing the data.
Each column of the table correspond to a column of the file.
The name of the column are the same as in the file.
Examples
rand("seed", 0) x = ["a"; "b"; "b"; "c"; "a"]; x1 = floor(rand(5,1)*5)-1.5; x2 = -floor(rand(5,1)*5)+0.5; t = table(x, x1, x2, "VariableNames", ["x", "x1", "x2"]); parquetWrite(fullfile(TMPDIR, "table.parquet"), t); t2 = parquetRead(fullfile(TMPDIR, "table.parquet")) // t2 = [5x3 table] // // x x1 x2 // ___ ____ ____ // // a -0.5 -2.5 // b 1.5 -3.5 // b -1.5 -2.5 // c -0.5 -3.5 // a 1.5 0.5
Caution
![]() | This function converts data:
|
See also
- parquetWrite — Write an Parquet file from a table.
History
| Версия | Описание |
| 2026.1.0 | Function added. |
| Report an issue | ||
| << csvWrite | Электронная таблица | parquetWrite >> |
