Public
Edited
Feb 12, 2024
Insert cell
Insert cell
ResultadosElectorales_PASO23_CABA.parquet
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
ResultadosElectorales_PASO23_CABA.parquet
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
db = DuckDBClient.of({
caba: FileAttachment("ResultadosElectorales_PASO23_CABA.parquet")
})
Insert cell
db
select distinct cargo_id, cargo_nombre from caba
Insert cell
db
select sum(votos_cantidad)::INT from caba
where cargo_id = 1
-- 1,700,085
Insert cell
db
SELECT agrupacion_nombre, sum(votos_cantidad)::INT as votos
FROM caba
WHERE agrupacion_nombre IS NOT NULL AND cargo_id = 1
GROUP BY agrupacion_nombre
ORDER BY 2 desc
-- LIMIT 10
Insert cell
Plot.plot({
title: "Votos por agrupación en CABA para el cargo: PRESIDENTE/A",
subtitle: "PASO 2023-08-13",
marginLeft: 300,
marks: [
Plot.barX(votos_CABA_para_presidente, {
x: "votos",
y: "agrupacion_nombre",
sort: { y: "x", reverse: true },
tip: true
}),
Plot.ruleX([0])
]
})
Insert cell
Insert cell
Plot.plot({
title: "Votos por agrupación en CABA para el cargo: PRESIDENTE/A",
subtitle: "2023-10-22 (1era vuelta)",
marginLeft: 300,
marks: [
Plot.barX(caba_presidente_1v, {
x: "votos",
y: "agrupacion_nombre",
sort: { y: "x", reverse: true },
tip: true
}),
Plot.ruleX([0])
]
})
Insert cell
Insert cell
Insert cell
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