Public
Edited
Apr 22, 2023
Insert cell
Insert cell
Insert cell
import {Wrangler, op} from "@observablehq/data-wrangler"
Insert cell
Insert cell
// Import the raw data cell from the previous notebook
import {data_raw} from "c2cfe523bdeb3bfa"
Insert cell
Insert cell
data_raw
Insert cell
Insert cell
Insert cell
Wrangler(data_raw)
Insert cell
final_data= aq.from(data_raw)
.orderby(aq.desc("temperature"))
.derive({temperatureNum: d => +d.temperature})
.filter(d => d["temperatureNum"] < 62.6)
.filter(d => d["temperatureNum"] > 60.6)
.derive({temperatureInCelcius: d => (d.temperatureNum -32)*5/9})
.rename({temperatureNum: "temperatureInFahrenheit"})
.select('date','temperatureInFahrenheit','temperatureInCelcius')
.objects()
Insert cell
Insert cell
Inputs.table(final_data, {width:700})
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