Public
Edited
Jan 13
1 fork
Insert cell
Insert cell
Insert cell
data = FileAttachment("players_20.csv").csv()
Insert cell
d3 = require("d3@6")
Insert cell
groupNationality = d3.group(data, (d) => d.nationality)
Insert cell
d3.rollup(
data,
(v) => v.length,
(d) => d.nationality
)
Insert cell
d3.rollup(
data,
(v) => d3.mean(v, (d) => d.age),
(d) => d.nationality
)
Insert cell
Insert cell
https://colab.research.google.com/drive/1cjXQmps6EoDDv6au4hNmOed9X3S10Fbn?usp=sharing
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