Public
Edited
Jan 5
8 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data = (await FileAttachment('film_permits_reduced.csv').csv())
.map(permit => {
// create a function to parese strings into Dates
const parser = d3.timeParse('%Y-%m-%d %H:%M:%S');
permit['StartDateTime'] = parser(permit['StartDateTime']);
permit['EndDateTime'] = parser(permit['EndDateTime']);
// a permit can be for multiple zip codes
permit['ZipCodes'] = permit['ZipCode(s)'].split(', ');
// remove columns that we are not using it
delete permit['SubCategoryName'];
delete permit['ZipCode(s)'];
return permit;
})
Insert cell
Insert cell
Insert cell
// add cells here
Insert cell
Insert cell
// add cells here
Insert cell
Insert cell
// add cells here
Insert cell
Insert cell
// add cells here
Insert cell
Insert cell
// add cells here
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