Public
Edited
Nov 1, 2023
Fork of Data tables
1 fork
Insert cell
Insert cell
happiness_data.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
happiness_data.csv
SELECT "Country Code", "Country", "Region", "Ladder score", "Logged GDP per capita", "Social support", "Healthy life expectancy", "Freedom to make life choices", "Generosity", "Perceptions of corruption", "Ladder score in Dystopia" FROM "happiness_data" WHERE "Ladder score" < 6 AND "Region" = 'Western Europe'
Insert cell
urbanization.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
urbanization
Insert cell
viewof table = Inputs.table(happiness_data, { columns: ["Country", "Region"] })
Insert cell
table
Insert cell
table.filter((d) => d.Region == "South Asia")
Insert cell
duckdata
select h.*, u.* from happiness as h join urbanization as u on h.CountryCode = u['Country Code'] where "urbanization" <= 20
Insert cell
duckdata = DuckDBClient.of({ happiness: happiness_data, urbanization: urbanization })
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