Public
Edited
Jan 13, 2024
Insert cell
Insert cell
Insert cell
grpby = d3
.rollups(
data,
(v) => ({
number_of_players: v.length,
avg_age_of_players: +d3.mean(v, (d) => d.age).toFixed(1)
}),
(d) => d.nationality
)
.map((d) => ({
nation: d[0],
number_of_players: d[1].number_of_players,
avg_age_of_players: d[1].avg_age_of_players
}))
Insert cell
aq.from(grpby).view({ limit: 10 })
Insert cell
import { aq, op } from "@uwdata/arquero"
Insert cell
data = FileAttachment("players_20.csv").csv({ typed: true })
Insert cell
Insert cell
Insert cell
Insert cell
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