Public
Edited
Jan 5
2 forks
4 stars
Insert cell
Insert cell
query = ({
'$select' : 'date_extract_m(created_date) as month, count(*)',
'$where': 'date_extract_y(created_date) = 2019',
'$group': 'month'
})
Insert cell
url = "https://data.cityofnewyork.us/resource/erm2-nwe9.json?" + new URLSearchParams(query)
Insert cell
data = (await fetch(url, {
method: 'GET',
headers: { 'Content-Type': 'application/json' },
})).json()
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