Published
Edited
May 6, 2022
Insert cell
Insert cell
Insert cell
import { Wrangler, op } from "@observablehq/data-wrangler"
Insert cell
Insert cell
import { data } from "@fff999/import-and-parse-your-dataset/2"
Insert cell
Insert cell
Inputs.table(data)
Insert cell
Insert cell
Insert cell
// To use copied code replace "data" with your own variable
final_data = aq.from(data)
.orderby(aq.desc("temperature"))
.derive({temperatureNum: d => +d.temperature})
.filter(d => d["temperatureNum"] < 50.6)
.filter(d => d["temperatureNum"] > 43.6)
.derive({temperatureCelsius: d => d.temperatureNum/ 1.8 - 32})
.rename({temperatureNum: "temperatureFahrenheit"})
.select('date','temperatureFahrenheit','temperatureCelsius')
.objects() // Uncomment to return an array of objects
Insert cell
Insert cell
Insert cell
Inputs.table(final_data)
Insert cell
Insert cell
Insert cell
import {imageToDo} from "@clokman/student-blocks"
Insert cell
imageToDo
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