Published
Edited
Jun 15, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
dbClient
select seasonNumber, episodeNumber, episodeTitle, averageRating
from ratings
-- TODO: ugly workaround for the map seriesTitle to parentTconst in Input.text
where seriesID = concat('tt', ${s.tvTitle.split(" ").slice(-1)[0].slice(1)}) and seasonNumber > 0
Insert cell
dbClient
select seriesID, seriesTitle, min(startYear) as startYear
from ratings
group by seriesID, seriesTitle
order by seriesTitle, startYear
Insert cell
dbClient
select seriesID, seriesTitle from ratings limit 100
Insert cell
dbClient.describe("ratings")
Insert cell
dbClient = {
const client = new DuckDBClient();
await client.query(`
CREATE TABLE 'ratings' AS SELECT * FROM read_parquet([
'https://media.githubusercontent.com/media/myagues/datasets/main/imdb/75784262d7844154b3eb0fc10255c84a.parquet'
])
`);
return client;
}
Insert cell
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