Suppose I have a dataset with a header row.
ds =
Dataset[AssociationThread[{"x", "y", "z"}, #] & /@ RandomReal[{0, 1}, {10, 3}]];
I want to construct the following dataset of means and variances. Note the header row and the stub column.)
Dataset[<|"mean" -> Normal@ds[Mean], "var" -> Normal@ds[Variance]|>]
How can I construct that with a single query on ds
(an no use of Normal
)?