Public
Edited
Dec 12, 2022
Fork of Arquero test
Insert cell
Insert cell
import { aq, op } from "@uwdata/arquero";
Insert cell
t = aq.table({
group: ["a", "a", "a", "b", "b", "b", "b", "b", "c", "c", ],
answer: ["n", "y", "y", "y", "n", "n", "n", "y", "y", "n"],
value: [1,1,2,3,4,1,1,3,4,5]
})
Insert cell
t.view()
Insert cell
t.groupby('group')
.orderby('answer')
.derive({
answers: d => op.array_agg_distinct(d.answer)
})
.unorder()
.derive({
// Is there a better way than this?
answers: aq.escape(d => d.answers.filter(q => q !== 'y'))
})
.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