Published
Edited
May 6, 2022
1 star
Insert cell
Insert cell
Insert cell
import {Wrangler, op} from "@observablehq/data-wrangler"
Insert cell
Insert cell
import { data as data_raw } from "@pablotheurer/import-and-parse-your-dataset/2"
Insert cell
Insert cell
Inputs.table(data_raw)
Insert cell
Insert cell
Insert cell
// To use copied code replace "data" with your own variable
final_data = aq
.from(data_raw)
.orderby(aq.desc("temperature"))
.derive({ temperatureNum: (d) => +d.temperature })
.filter((d) => d["temperatureNum"] < 62)
.filter((d) => d["temperatureNum"] > 40)
.derive({ temperatureCelsius: (d) => d.temperatureNum / 1.8 - 32 })
.select("date", "temperatureCelsius", "temperatureNum")
.rename({ temperatureNum: "temperatureFahrenheit" })
.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