Public
Edited
Nov 5
Importers
3 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
df = get_genderdiversity(article, wikipedia).then((d) =>
aq
.from(d)
.derive({ share: (d) => (100 * d.count) / op.sum(d.count) })
.derive({ hhi: (d) => op.sum((d.share / 100) ** 2) })
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
get_default = () => {
const params = new URL(document.URL).searchParams;
const defaults = {
wikipedia: "en.wikipedia.org",
article: "Artificial intelligence"
};
if (params.has("wikipedia")) {
defaults.wikipedia = params.get("wikipedia");
}
if (params.has("article")) {
defaults.article = params.get("article");
}
return defaults;
}
Insert cell
Insert cell
import { SearchForm } from "@floatingpurr/input-autocomplete"
Insert cell
import {wikipedias} from "@pac02/user-level-gender-statistics-for-wikipedia"
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