Public
Edited
Oct 8, 2022
8 stars
Insert cell
Insert cell
Insert cell
Insert cell
olympians
Insert cell
Inputs.table(olympians)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data1 = tidy(
olympians,
mutate({totalMedals: d => d.gold + d.silver + d.bronze})
)
Insert cell
Insert cell
Insert cell
data2 = tidy(
olympians,
mutate({totalMedals: d => d.gold + d.silver + d.bronze}),
filter(d => d.gold > 0),
arrange(desc("gold"))
)
Insert cell
Inputs.table(data2)
Insert cell
Insert cell
Insert cell
tidy(
olympians,
count("sport", {name: "nAthletes"}),
arrange(desc("nAthletes"))
)
Insert cell
Insert cell
tidy(
olympians,
groupBy(["sport"], [
filter(d => count("sport") > 500)
])
)
Insert cell
Insert cell
Insert cell
data3 = tidy(
olympians,
groupBy(["sport"], [
mutateWithSummary({nBySport: n()})
]),
filter(d => d.nBySport > 500)
)
Insert cell
Insert cell
Insert cell
Inputs.table(data3)
Insert cell
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