Given a hierarchical data set, I am looking for a way to extract a list of values by their keys. When I use the Part syntax for a single key, I get the value. But when I use a list of keys, I get a Dataset. Is there a succinct way to get a list of values instead?
In[1]:= as = Association /@ {
{"a" -> 1, "b" -> 2, "c" -> 3},
{"d" -> 2, "e" -> 3, "f" -> 1}
};
In[2]:= ds = Dataset[as]
Out[2]= Dataset[{__Association}]
In[3]:= ds[[1, "b"]]
Out[3]= 2
In[4]:= ds[[1, {"b", "c"}]]
Out[4]= Dataset[_Association]
What I want is {2,3}