Very basic question. Probably showing my ignorance, but if I have a dataset like the example in the docs
dataset = Dataset[{
<|"a" -> 1, "b" -> "x", "c" -> {1}|>,
<|"a" -> 2, "b" -> "y", "c" -> {2, 3}|>,
<|"a" -> 3, "b" -> "z", "c" -> {3}|>,
<|"a" -> 4, "b" -> "x", "c" -> {4, 5}|>,
<|"a" -> 5, "b" -> "y", "c" -> {5, 6, 7}|>,
<|"a" -> 6, "b" -> "z", "c" -> {}|>}]
and I want to group by column "b" I type
dataset[GroupBy["b"]]
I get the beautiful result
But if I just want columns "a" and "c", how do I get them? Naively I type
dataset[GroupBy["b"], {"a", "c"}]
What's going on? How do I select what columns I want after GroupBy?
GroupBy["b"]
$\endgroup$Dataset`AscendingQ
andDataset`DescendingQ
can tell you it is or not. $\endgroup$