atoti.ExternalColumn.isin()#
- ExternalColumn.isin(*elements: bool | int | float | date | datetime | time | Sequence[bool] | Sequence[int] | Sequence[float] | Sequence[str] | str) Condition[ExternalColumnIdentifier, Literal['isin'], Constant, None] #
- ExternalColumn.isin(*elements: bool | int | float | date | datetime | time | Sequence[bool] | Sequence[int] | Sequence[float] | Sequence[str] | str | None) Condition[ExternalColumnIdentifier, 'isin', Constant | None, None]
Return a condition evaluating to
True
if a column element is among the given elements andFalse
otherwise.table["City"].isin("Paris", "New York")
is equivalent to(table["City"] == "Paris") | (table["City"] == "New York")
.- Parameters:
elements – One or more elements on which the column should be.