Type Table, then Shift-Enter. Ctrl-space for more options.
stars// the results of the SQL query above
stars[0]// the first row
stars[0].ra// the ra (right ascension) field of the first row
stocks=DuckDBClient.of({
aapl:FileAttachment("aapl.csv"),
amzn:FileAttachment("amzn.csv"),
goog:FileAttachment("goog.csv"),
ibm:FileAttachment("ibm.csv")
})
stocks
Type Table, then Shift-Enter. Ctrl-space for more options.
moviesdb=DuckDBClient.of({
movies:{
file:FileAttachment("movies.csv"),
dateFormat:"%b %d %Y"// e.g. Jun 12 1998
}
})
moviesdb
Type Table, then Shift-Enter. Ctrl-space for more options.
stocks.sql`SELECT Open, Close, Volume FROM aapl WHERE Volume > ${100_000_000}`
stocks.query("SELECT Open, Close, Volume FROM aapl WHERE Volume > ?",[100_000_000])
maxaapl=stocks.queryRow("SELECT Date, Open, Close, Volume FROM aapl ORDER BY Volume DESC LIMIT 1")
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.