// op.upper(): Returns the string value converted to upper case.
// op.includes(array, value[, index]): Determines whether an array includes a certain value among its entries, returning true or false as appropriate.
// to be filled -- filter and get the highest mpg in the USA.
// to be filled -- filter for cars only made from USA, sort in decending order, and select a subset of collumn to show for 5 rows only.
// Hint: Use aq.desc(field)!
// to be filled -- find answer for each region
cars_table
.groupby('Origin')
.rollup({
count:d=>op.count()
/**
* Insert your code here!!
*/
})
.orderby(aq.desc('count'))
.view()
// to be filled -- change the unit for the weights
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.