Public
Edited
Oct 6, 2023
Insert cell
Insert cell
Insert cell
Insert cell
selectionArtistes = femmesDiversite.concat(top20FemmesNoDiversiteNoWikidata).concat(hommesDiversiteNoWikidata).concat(top20HorsMTLNoWikidata)
Insert cell
selectionArtistes
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
femmes = data.filter(d => d.hint_gender == "femme")
Insert cell
femmes
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
femmesNoDiversite = femmes.filter(d => d.hint_diversite == "non").sort((a, b) => {
return b.nbOeuvres - a.nbOeuvres;
})
Insert cell
Insert cell
top20FemmesNoDiversite = femmesNoDiversite.filter(d => d.id_wikidata == "").slice(0,20)
Insert cell
top20FemmesNoDiversite
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
femmesNoWikidata = femmes.filter(d => d.id_wikidata == "").sort((a, b) => {
return b.nbOeuvres - a.nbOeuvres;
})
Insert cell
femmesNoWikidata
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
top20FemmesNoDiversiteNoWikidata = femmesNoWikidata.filter(d => d.hint_diversite == "non").slice(0,20)
Insert cell
Insert cell
diversite = data.filter(d => d.hint_diversite == "oui").sort((a, b) => {
return b.nbOeuvres - a.nbOeuvres;
})
Insert cell
diversite
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
femmesDiversite = data.filter(d => d.hint_diversite == "oui" && d.hint_gender == "femme").sort((a, b) => {
return b.nbOeuvres - a.nbOeuvres;
})
Insert cell
Insert cell
femmesDiversite
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
hommes = data.filter(d => d.hint_gender == "homme")
Insert cell
Insert cell
hommesDiversite = hommes.filter(d => d.hint_diversite == "oui").sort((a, b) => {
return b.nbOeuvres - a.nbOeuvres;
})
Insert cell
hommesDiversite
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
hommesDiversiteNoWikidata = hommesDiversite.filter(d => d.id_wikidata == "")
Insert cell
hommesDiversiteNoWikidata
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
artistesRestants = {
var liste = []

artistesHorsMTL.forEach(a => {
if (femmesDiversite.find(d => d.id != a.id) || top20FemmesNoDiversiteNoWikidata.find(d => d.id != a.id) || hommesDiversiteNoWikidata.find(d => d.id != a.id) )
liste.push(a)
})

return liste
}
Insert cell
artistesRestantsNoWikidata = artistesRestants.filter(d => d.id_wikidata == "")
Insert cell
Insert cell
top20HorsMTL = artistesRestants.slice(0, 20)
Insert cell
top20HorsMTL
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
top20HorsMTLNoWikidata = artistesRestantsNoWikidata.slice(0,20)
Insert cell
artistesRestantsNoWikidata
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
artistesHorsMTL = artistesEtCollectifsHorsMtl.filter(d => d.is == "artist").sort((a, b) => {
return b.nbOeuvres - a.nbOeuvres;
})
Insert cell
Insert cell
Insert cell
Insert cell
liste = oeuvresHorsMtl.filter(d => d.artists != null)
Insert cell
Insert cell
unSeulArtiste = oeuvresHorsMtl.filter(d => d.artists != null && d.artists.length == 1)
Insert cell
Insert cell
artistesInconnus = oeuvresHorsMtl.filter(d => d.artists == null)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
2023-09-29ArtistesMONAReconciliation.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
oeuvres
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
oeuvres = artworks_v3_20230929.data
Insert cell
artworks_v3_20230929 = FileAttachment("artworks_v3_2023-09-29.json").json()
Insert cell
import {toc} from "@lenamk/toc"
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more