Public
Edited
Nov 7, 2022
Importers
Insert cell
Insert cell
Insert cell
Insert cell
board = await BoardUrl.create(
"https://ijlyttle.github.io/pins-three-ways/pins/"
)
Insert cell
board.pinMeta("penguins-arrow")
Insert cell
temp = "penguins-arrow/20220808T201157Z-ef034/"
Insert cell
temp.split("/").slice(-2, -1)[0]
Insert cell
Insert cell
board.pinList()
Insert cell
board.pinExists("penguins-csv")
Insert cell
Insert cell
board.pinVersions("penguins-json")
Insert cell
Insert cell
board.pinMeta("penguins-json", { version: "20220808T201103Z-fa33e" })
Insert cell
Insert cell
board.pinUrl("penguins-json", )
Insert cell
Insert cell
penguinsJson = await board
.pinFetch("penguins-json", { version: "20220808T201137Z-fa33e" })
.then((response) => response.json())
Insert cell
Insert cell
penguinsCsv = await board
.pinFetch("penguins-csv")
.then((response) => response.text())
.then(aq.fromCSV)
Insert cell
penguinsArrow = await board
.pinFetch("penguins-arrow")
.then((response) => response.arrayBuffer())
.then(aq.fromArrow)
Insert cell
Insert cell
Inputs.table(penguinsArrow)
Insert cell
penguinsArrow.array("species")
Insert cell
penguinsArrowRaw = await board
.pinFetch("penguins-arrow")
.then((response) => response.arrayBuffer())
.then(arrow.tableFromIPC)
Insert cell
penguinsArrowRaw.schema.fields[0].type.dictionary
Insert cell
timeArrow = await board
.pinFetch("time-arrow")
.then((response) => response.arrayBuffer())
.then(arrow.tableFromIPC)
Insert cell
timeArrow
Insert cell
timeArrow.schema.fields[1].type
Insert cell
timeArrow
.toArray()
.map((x) => x.datetime)
.map((x) => new Date(x))
Insert cell
timeArquero = await board
.pinFetch("time-arrow")
.then((response) => response.arrayBuffer())
.then(aq.fromArrow)
Insert cell
Insert cell
Insert cell
Insert cell
yaml = require("js-yaml@4.1.0/dist/js-yaml.js")
Insert cell
arrow = require("apache-arrow@9.0.0/Arrow.es2015.min.js")
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