featurebyte.Feature.isin¶
isin(
other: Union[FrozenSeries, Sequence[Union[bool, int, float, str]]]
) -> FrozenSeriesTDescription¶
Identifies if each element is contained in a sequence of values represented by the other
parameter.
Parameters¶
- other: Union[FrozenSeries, Sequence[Union[bool, int, float, str]]]
The sequence of values to check for membership.other
can be a predefined list of values, or a Cross Aggregate feature. Ifother
is a Cross Aggregate feature, the keys of the Cross Aggregate feature will be used to check for membership.
Returns¶
- FrozenSeriesT
Feature with boolean values
Examples¶
Create a new feature that checks whether a lookup feature is contained in the keys of a dictionary feature: