Public
Edited
Mar 14, 2023
Insert cell
Insert cell
filtered
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
filtered = aq
.from(src)
.groupby(["vf_county_name", "reg_dma_name"])
.orderby([
"vf_county_name",
"reg_dma_name",
aq.desc("count_reg_voters"),
"vf_precinct_name"
])
.filter((d) => aq.op.row_number() == 1)
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