This message was deleted.
# daft-dev
s
This message was deleted.
👍 1
j
Hi and thanks @Peter ! We do have an is_in operator which you should already be able to use for this use-case: https://www.getdaft.io/projects/docs/en/latest/api_docs/doc_gen/expression_methods/daft.expressions.Expression.is_in.html Couple of questions: 1. Was this not discoverable via the documentation? Any suggestions on better docs? 2. Does this solve your question? I think other dataframe libraries do expose their functionality as for functions, for example:
F.and_
, which is an alternative method chaining like we do. Interested to hear your thoughts there as well.
p
Thanks @jay , somehow I missed the
is_in
operator. I scanned through the sidenav of the Exppressions API, but I did not catch what I was looking for, maybe the line break messed up my quick scan. This solves my question. With regards to enhancing the docs, I would have two suggestions. It would be great to have either more concise hyperlinks (e.g. removing the
daft.Expression.
prefix) or a wider sidenav to accommodate the fully qualified names of the API members. More importantly, I think it would be useful to provide more advanced examples under the
DataFrame
methods like
daft.DataFrame.where
. Having a one-liner example there featuring how to use
is_in
(and also indicating that such a utility exists) would be great.
j
👍 thanks! 1. Yes I think our docs can do a better job with examples. We’ll prioritize getting better example coverage all across the docs. 2. We’ll also take a look at making the hyperlinks more concise (removing the
daft.Expression
or
daft.DataFrame
prefixes)
p
Great, thanks!