Published unlisted
Edited
Jul 25, 2022
1 star
Insert cell
# Top 5000 albums of all time (spotify)
Insert cell
Insert cell
top5000 = {
let data = await FileAttachment("Top5000.csv").csv();
let now = new Date();
return data.map((d) => {
let rel_date = parser(d.rel_date);
if (rel_date > now) rel_date.setFullYear(rel_date.getFullYear() - 100);
return { ...d, rel_date };
});
}
Insert cell
parser = d3.timeParse("%d-%b-%y")
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