Public
Edited
Apr 5, 2024
Insert cell
Insert cell
data = FileAttachment("baby_names.csv").csv({typed: true})
Insert cell
Insert cell
viewof tbl = Inputs.table(data, {
format: {
Year: d3.format("d") // format as "1960" rather than "1,960"
}
})
Insert cell
genderVal = tbl.map(item => item.Gender);
Insert cell
uniqueYears = [...new Set(genderVal)]
Insert cell
Insert cell
import { aq, op } from '@uwdata/arquero'
Insert cell
distinctTable = aq.from(data).select('Name', 'Gender').dedupe()
Insert cell
Inputs.bind(
Inputs.table(distinctTable, {columns: ["Gender"]}),
Inputs.table(distinctTable, {columns: ["Name"]})
)
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