Closed felixcremer closed 11 months ago
Contains
means an interval containing a point. Having this run contains on strings could be confusing? Probably just using Where is better
Then the Docstring should state, that one should use Where for this case and should not silently try to use At and rather throw an informative error message.
I think, that the overlap with the Intervals is not so bad because Categorical and Intervals doing different things is expected and Contains has a clear meaning for Strings.
Let make the docstring clearer
I am surprised, that the Contains selector for Categorical values does call At and does not call the contains function. My use case is, that I have a long Variable dimensions with many different named variables for which some are similar or following a certain naming pattern. And then I want to select a certain variable group like in this shortened example. I would expect that the
Contains(value)
selector behaves as callingWhere(contains(value))
I can open a PR with these changes, but I might need some help in making the Vector case work.