Public
Edited
Oct 8, 2024
1 star
Insert cell
Insert cell
url = "https://media.githubusercontent.com/media/MuseumofModernArt/collection/master/Artworks.csv"
Insert cell
data = (await FileAttachment("Artworks.csv.zip").zip()).file("Artworks.csv").csv()
Insert cell
viewof artworks = aq.from(data).view()
Insert cell
Insert cell
Insert cell
Insert cell
artworks.select("Artist", "Classification", "Nationality").view()
Insert cell
Insert cell
viewof beginEnd = artworks.select("BeginDate", "EndDate").view()
Insert cell
beginEnd.select("BeginDate").view()
Insert cell
Insert cell
Insert cell
Insert cell
viewof colombians = artworks.filter(d => d.Nationality === "(Colombian)").view()
Insert cell
colombians.select("Nationality", "Artist").view()
Insert cell
Insert cell
// do it here
artworks.view()
Insert cell
Insert cell
// do it here
artworks.view()
Insert cell
Insert cell
Insert cell
Insert cell
selected = artworks
.select("Artist", "Classification")
.rename({ Artist: "Author", Classification: "Class" })
.view()
Insert cell
Insert cell
Insert cell
viewof argentines = artworks.filter(d => d.Nationality === "(Argentine)").view()
Insert cell
viewof colArg = colombians.union(argentines).view()
Insert cell
Insert cell
Insert cell
colArg.except(colombians)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {
hconcat,
edge,
categories,
call
} from "@uwdata/an-illustrated-guide-to-arquero-verbs"
Insert cell
import { aq, op } from "@uwdata/arquero"
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