Public
Edited
Oct 29, 2024
6 forks
3 stars
Insert cell
Insert cell
Insert cell
Insert cell
Berlin_airbnb = d3.csv(
"https://gist.githubusercontent.com/sandravizz/952b2c4b2b88a310bc5aaf371716593a/raw/c3725ac3c2bd0a70640a7f753e54ba1f88f74636/Berlin%2520airbnb%2520Nov%25202021",
d3.autoType
)
Insert cell
Insert cell
Insert cell
Insert cell
Average_Price = d3.mean(Berlin_airbnb, d => d.price)
Insert cell
Min_Max_price = d3.extent(Berlin_airbnb, d => d.price)
Insert cell
Insert cell
Berlin_airbnb_clean = Berlin_airbnb.filter(d => d.price > 10 & d.price < 2000)
Insert cell
Min_Max_price_clean = d3.extent(Berlin_airbnb_clean, (d) => d.price)
Insert cell
Insert cell
Insert cell
Insert cell
prices = sortedData.map(d => d.price)
Insert cell
Insert cell
prices2 = Berlin_airbnb.filter((d) => (d.price > 10) & (d.price < 2000))
.sort((a, b) => b.price - a.price)
.map((d) => d.price)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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