Published
Edited
Apr 17, 2021
Fork of CSV to JSON
2 forks
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
desiredData = data
.map(d => {return{
parfamName : d.parfamName,
yearIndex : +d.yearIndex,
culture : +d.culture,
environ: +d.environ,
equality: +d.equality,
parfamCount: +d.parfamCount,
rile: +d.rile,
staticRile: +d.staticRile,
avgVote: +d.avgVote
};})
.filter(d=> d.yearIndex > 1989)
.filter(d=> d.parfamName !== 'DIV')



Insert cell
d3.groups(desiredData, d => d.parfamName)
.map(d=>({parfamName:d[0],
data:d[1]}))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d3 = require("d3@6")
Insert cell
filesize = require("filesize@6.1.0");
Insert cell
sizeof = require('https://bundle.run/object-sizeof@1.6.1')
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