Published
Edited
Jan 8, 2020
1 fork
1 star
Insert cell
Insert cell
data = FileAttachment("bracketdata.json").json()
Insert cell
bracketsWithoutParentId = {
const rounds = lodash.flatten(Object.values(data.body.round));
const roundMap = {};
rounds.forEach(r => (roundMap[r.id] = r));

return rounds.filter(r => {
if (r.bracket !== 'LOSER') return false;
return roundMap[r.id];
});
}
Insert cell
lodash = require('lodash')
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