-
I have a data loader that produces a file large enough that loading seemed to time out when created as a CSV. Following Fil's advice here, I switched the data loader to create a parquet. I can use the parquet directly in something like When I load the file as a parquet, it does not have any of the JS array functions like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you load it with the FileAttachment("").parquet() method, the result is an arrow table; see You can transform this into a normal JS array by calling |
Beta Was this translation helpful? Give feedback.
If you load it with the FileAttachment("").parquet() method, the result is an arrow table; see
https://observablehq.com/framework/lib/arrow for details.
You can transform this into a normal JS array by calling
[...values]
, but if the number of rows is huge, it's not going to be efficient, and I'd recommend using tools that work directly with arrow tables, such as arquero or DuckDB.