polars.internals.series.ListNameSpace.contains

ListNameSpace.contains(item: Union[float, str, bool, int, datetime.date, datetime.datetime]) polars.internals.series.Series

Check if sublists contain the given item.

Parameters
item

Item that will be checked for membership

Returns
Boolean mask