Public
Edited
Aug 7, 2024
Insert cell
Insert cell
parquetWasm = import("https://cdn.jsdelivr.net/npm/parquet-wasm@0.6.1/esm/parquet_wasm.js")

Insert cell
Insert cell
arrowp = await FileAttachment("test-arrow.parquet")
Insert cell
dt = getDataTable(arrowp)
Insert cell
dt.view()
Insert cell
Insert cell
nanoparquet= await FileAttachment("test-nanoparquet.parquet")
Insert cell
nanodt = getDataTable(nanoparquet)
Insert cell
Insert cell
readParquet = parquetWasm.readParquet
Insert cell
init = parquetWasm.default
Insert cell
async function getDataTable(file) {
await init();
const arrayBuffer = await file.arrayBuffer();
const arr = new Uint8Array(arrayBuffer);
const arrowIPC = readParquet(arr);
const dt = aq.fromArrow(arrowIPC.intoIPCStream());
return dt;
}
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more