Published
Edited
Mar 6, 2021
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
R = require('https://cdnjs.cloudflare.com/ajax/libs/ramda/0.27.1/ramda.min.js')
Insert cell
Insert cell
Insert cell
Insert cell
transformCSVText = R.pipe(
R.pipe( //text
R.split('\n'), //rows text
R.map( //row text
R.pipe( //row text
R.split(','), //cells
R.map(R.trim) //trim cells
)
)
), //[ rows -> cells]
R.splitAt(1), //name's column first row
R.apply( //[ [names], [lines] ]
R.lift(R.zipObj)
)
)
Insert cell
Insert cell
arrayOfObject = transformCSVText(dataFromCSV)
Insert cell
Insert cell
Insert cell
Table(arrayOfObject)
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