Public
Edited
Nov 16, 2023
8 forks
Insert cell
Insert cell
people = FileAttachment("People.csv").csv({typed:true})
Insert cell
hall = FileAttachment("HallOfFame.csv").csv({typed:true})
Insert cell
db = DuckDBClient.of({
people:people,
hall:hall
})
Insert cell
db
SELECT playerID,
CASE(
SELECT max(inducted)
FROM hall
WHERE playerID = people.playerID
)
WHEN 'Y' THEN 'Hall of Famer'
WHEN 'N' THEN 'Never Elected'
ELSE 'Never on Ballot'
END status
FROM people
WHERE status = 'Never on Ballot'
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