Published
Edited
Jun 14, 2021
Insert cell
Insert cell
columnar = ({
City: ["London", "Berlin", "Madrid", "Barcelona", "Munich","Rio","Sao Paulo","Belo Horizonte"],
Country: ["UK", "Germany", "Spain", "Spain", "Germany","Brazil","Brazil","Brazil"],
Population: [8615, 3562, 3165, 1602, 1494,8000,14000,5000]
})
Insert cell
Object.keys(columnar)
Insert cell
row_oriented = [
{City: "London", Country: "UK", Population: 8615},
{City: "Berlin", Country: "Germany", Population: 3562},
{City: "Madrid", Country: "Spain", Population: 3165},
{City: "Barcelona", Country: "Spain", Population: 1602},
{City: "Munich", Country: "Germany", Population: 1494},
{City: "Rio", Country: "Brazil", Population: 6750},
{City: "São Paulo", Country: "Brazil", Population: 12330},
{City: "Belo Horizonte", Country: "Brazil", Population: 2700}];
Insert cell
my_rands = generate_random(10,20)
Insert cell
five_nums(my_rands)
Insert cell
five_nums(row_oriented.map(row=>row.Population))
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