// Import the `myDataset` cell from the previous notebook as the 'ages' cell of this notebook
import{myDataset}from"f7eab43ecb1c601d"
myDataset
// You can use Inputs.table()
Inputs.table(myDataset,{width:600})
// Map() can do the trick
myDataset.map(d=>d.name)
// Filter() would be useful here
myDataset.filter(d=>d.name==='Gandalf')
// What would happen if you were to use `map()` instead of `filter()`? Try and find out.
myDataset.map(d=>d.name==='Gandalf')
//with map() instead of filter(), an array is returned containing "true" for each element in myDataset that has a 'name' property matching 'Gandalf' and 'false' for all other elements
// Filter() could help here
myDataset.filter(d=>d.age>20_000)
myDataset.filter(d=>d.age<1000)
import{imageToDo}from"@clokman/student-blocks"
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.