Public
Edited
May 25, 2023
Insert cell
Insert cell
## Standard approach
Insert cell
db = DuckDBClient.of({
match : FileAttachment("example.csv")
})
Insert cell
db.sql`SELECT * FROM match LIMIT 10`
Insert cell
Insert cell
viewof csvfile = Inputs.file({label: "CSV file", accept: ".csv", required: true})
Insert cell
csvfile["name"]
Insert cell
FileAttachment(csvfile["name"])
Insert cell
db_input = DuckDBClient.of({
match : await csvfile.csv()
})
Insert cell
db_input.sql`SELECT * FROM match LIMIT 10`
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