Published
Edited
Feb 7, 2021
1 star
Insert cell
md`# csvParse formatting example`
Insert cell
Insert cell
example1 = d3.csvParse(penguins, d => ({...d, culmen_length_mm : +d.culmen_length_mm}))
Insert cell
example2 = d3.csvParse(penguins, d => ({...d, culmen_length_mm : parser(d.culmen_length_mm)}))
Insert cell
function parser(d) {
return +d
}
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