Public
Edited
Jan 16, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
BMovies = FileAttachment("latest bmovies.txt.json").json()
// BMovies = FileAttachment("b-movies.json").json() // old DB
Insert cell
Insert cell
Insert cell
Insert cell
viewof what = Inputs.table(BMovies)
Insert cell
Insert cell
function getPercentageIncrease(numA, numB) { // thanks stack overflow
return ((numA - numB) / numB) * 100;
}
Insert cell
Insert cell
Insert cell
taglines = _.compact(BMovies.map( tl => tl.tagline))
Insert cell
teGenres = _.uniq(_.flatten(BMovies.map(m=> m.genres.map( g => g.name))))
Insert cell
genreCount = _.countBy(_.flatten(BMovies.map(m=> m.genres.map( g => g.name))))
Insert cell
overview = BMovies.map( tl => tl.overview)
Insert cell
keys = _.keysIn(BMovies[0])
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