If I have the following Dataset
ds=Dataset[{
<|"a" -> 1, "b" -> "x", "c" -> 6|>,
<|"a" -> 2, "b" -> "y", "c" -> {2, 3}|>,
<|"a" -> "x", "b" -> "z", "c" -> {3}|>,
<|"a" -> 4, "b" -> "x", "c" -> {4, 5}|>,
<|"a" -> 5, "b" -> "y", "c" -> {5, 6, 7}|>,
<|"a" -> 6, "b" -> "z", "c" -> {}|>}]
how can I search the Dataset
to find all keys that have same value. In the above example if I want to search in ds
to find the keys that have "x"
value what should I do. The answer should be {"a","b"}
. If searching for 6
then the answer should be {"a","c"}