Public
Edited
Apr 17, 2024
Insert cell
Insert cell
import { aq, op } from '@uwdata/arquero';
Insert cell
table = aq.table({ type: ['a', 'b'], x: [1, 2], y: [3, 4 ]})

Insert cell
table.view()
Insert cell
table.pivot('type', ['x', 'y']).view()
Insert cell
table2 = aq.table({ foo: ['a','a', 'b', 'b'], bar: ['u', 'v', 'u', 'v'], x: [1, 2, 3, 4], y: [30, 40, 50, 60 ]})

Insert cell
table2.view()
Insert cell
table2.pivot(['foo', 'bar'], ['x', 'y']).view()
Insert cell
table2.groupby('foo').pivot(['bar'], ['x', 'y']).view()
Insert cell
table2.derive({cool: (d) => d.foo == "a" ? "worked": "didn';t wor"}).view()
Insert cell
aq.table({ colA: [], colB: [] }).view()
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