daft.Expression.is_in#
- Expression.is_in(other: Any) Expression [source]#
Checks if values in the Expression are in the provided list
Example
>>> import daft >>> df = daft.from_pydict({"data": [1, 2, 3]}) >>> df = df.select(df["data"].is_in([1, 3])) >>> df.collect() ╭─────────╮ │ data │ │ --- │ │ Boolean │ ╞═════════╡ │ true │ ├╌╌╌╌╌╌╌╌╌┤ │ false │ ├╌╌╌╌╌╌╌╌╌┤ │ true │ ╰─────────╯ (Showing first 3 of 3 rows)
- Returns:
Boolean Expression indicating whether values are in the provided list
- Return type:
Expression