Published
Edited
Nov 12, 2021
Insert cell
Insert cell
sbTable
.join(teamsTable,(a,b) => a.teamID == b.teamID && a.yearID == b.yearID)
.select("yearID_1","SB","name")
.rename({
yearID_1:"year"
})
.derive({
stolenBases:record => op.parse_int(record.SB)
})
.orderby(aq.desc("stolenBases"))
.select(aq.not("SB"))
.view()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

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