Public
Edited
Aug 30, 2023
Insert cell
Insert cell
Insert cell
dt = aq.from(penguins)
Insert cell
Inputs.table(dt, {rows: 10})
Insert cell
Insert cell
dt_new = dt
.groupby("island")
.rollup({
count: d => op.count(),
culmen_min: d => Math.round(op.min(d.culmen_depth_mm) * 100) / 100,
culmen_max: d => (Math.round(op.max(d.culmen_depth_mm) * 100) / 100),
//culmen_max: d => (Math.round(op.max(d.culmen_depth_mm) * 100) / 100).toFixed(2),
})
Insert cell
Inputs.table(dt_new)
Insert cell
Insert cell
import { aq, op } from "@uwdata/arquero"
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