Published
Edited
May 15, 2021
1 fork
Insert cell
Insert cell
FileAttachment("julho.js").json()
Insert cell
Object.keys(aq.op)
Insert cell
columnar = ({
City: ["London", "Berlin", "Madrid", "Barcelona", "Munich"],
Country: ["UK", "Germany", "Spain", "Spain", "Germany"],
Population: [8615000, 3562000, 3165000, 1602000, 1494000]
})

Insert cell
Object.keys(columnar)
Insert cell
columnar
Insert cell
Insert cell
my_rands = generate_random(100,200)
Insert cell
five_nums = function(nums) {
return { min: Math.min(...nums), q1: d3.quantile(nums,.25), median: d3.median(nums), q3: d3.quantile(nums,.75), max: Math.max(...nums) }
}
Insert cell
my_rands
Insert cell
my_rands.join()
Insert cell
five_nums(my_rands)
Insert cell
dt2 = aq.table({
'Seattle': [69,108,178,207,253,268,312,281,221,142,72,52],
'Chicago': [135,136,187,215,281,311,318,283,226,193,113,106],
'San Francisco': [165,182,251,281,314,330,300,272,267,243,189,156]
});
Insert cell
aq.fromJSON(`{
"schema":{"fields":[{"name":"a"},{"name":"b"}]},
"data":{"a":[1,3],"b":[2,4]}
}`)
Insert cell
dt = aq.table({
u: ['a', 'a', 'b', 'b'],
x: Int32Array.of(1, 2, 3, 4),
y: Float64Array.of(5, 6, 7, 8)
})
Insert cell
dt.toHTML()
Insert cell
html`${dt.toHTML()}`
Insert cell
Object.keys(aq.op).join(";\n")
Insert cell
op.sequence(1,100,3)
Insert cell
import { aq, op } from '@uwdata/arquero'
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more