// ... import the `myDataset` cell from the previous notebook as the 'ages' cell of this notebook
ages
// ...
viewoftable=Inputs.table(ages)// or Inputs.table(ages), or selectedRows.value if you check boxes for some rows and output only the selected values but it shows some weird raw html version of the values . viewof selectedRows = Inputs.table(ages) is better since it is easier for observable and very useful for visualization
ages.map((d)=>d.name)//takes the datum and only takes the name
ages.filter((d)=>d.name==="Gandalf")//if you did map instead of filter it will just return whether the value is true or false (answer to below line)
// what would happen if you were to use `map()` instead of `filter()`? Try and find out.
ages.filter((d)=>d.age>20_000)
ages.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.