Public
Edited
Dec 12, 2023
Insert cell
Insert cell
MNBAQ_new.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
raw = FileAttachment("MNBAQ_new.csv").csv()
Insert cell
data = raw.map(d => {
return {
id: d["No d'inventaire"],
departement: d['Département'],
acquisitionMode: d["Mode d'acquisition"],
acquisitionYear: d["Année d'acquisition"],
productionYear: d["Date de production"],
classification: d["Classification"],
category: d["Catégorie"],
isItem: d["No d'inventaire"].split('.').length === 4 ? true : false
}
}).filter(d => !d.isItem && d.departement !== 'Art inuit' && !d.departement.includes("Arts décoratifs"))
Insert cell
departements = [...new Set(data.map(d => d.departement))]
Insert cell
Insert cell
acquisitionModes = [...new Set(data.map(d => d.acquisitionMode))]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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