cars_table
.groupby("Origin")
.rollup({
mean_mpg: d => op.mean(d.Miles_per_Gallon),
mean_displacement: d => op.mean(d.Displacement),
mean_horsepower: d => op.mean(d.Horsepower),
mean_weight: d => op.mean(d.Weight_in_lbs),
mean_acc: d => op.mean(d.Acceleration),
min_year: d => op.min(d.Year),
max_year: d => op.max(d.Year),
median_cylinders: d => op.median(d.Cylinders),
count: op.count()
})
.orderby(aq.desc("count"))
.view()