Published
Edited
Aug 5, 2022
Insert cell
Insert cell
arrow = require("apache-arrow@9")
Insert cell
url = "https://gist.githubusercontent.com/hzuo/29e11b2c1897f74fff3eac37549c279d/raw/1956dac06861e30cc85297a3094d3d927c4f58e2/humans.json"
Insert cell
json = await (await fetch(url)).json();
Insert cell
table = arrow.tableFromJSON(json)
Insert cell
bytes = arrow.tableToIPC(table)
Insert cell
// This table should have 2 record batches?
table2 = arrow.tableFromIPC([bytes, bytes])
Insert cell
table2.numRows
Insert cell
table2.batches
Insert cell
Insert cell
table.numRows
Insert cell
table.batches
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