class_docstr: Namespace for list related expressions.
class_docstr_tok: ["Namespace","for","list","related","expressions","."]
docstr: Check if sublists contain the given item.
  
  Parameters
  ----------
  item
      Item that will be checked for membership
  
  Returns
  -------
  Expr
      Expression of data type :class:`Boolean`.
  
  Examples
  --------
  >>> df = pl.DataFrame({"a": [[3, 2, 1], [], [1, 2]]})
  >>> df.with_columns(contains=pl.col("a").list.contains(1))
  shape: (3, 2)
  ┌───────────┬──────────┐
  │ a         ┆ contains │
  │ ---       ┆ ---      │
  │ list[i64] ┆ bool     │
  ╞═══════════╪══════════╡
  │ [3, 2, 1] ┆ true     │
  │ []        ┆ false    │
  │ [1, 2]    ┆ true     │
  └───────────┴──────────┘
docstr_tok: ["Check","if","sublists","contain","the","given","item",".","Parameters","--","--","--","--","--","item","Item","that","will","be","checked","for","membership","Returns","--","--","--","-","Expr","Expression","of","data","type",":","class",":","`","Boolean","`",".","Examples","--","--","--","--",">",">",">","df","=","pl.DataFrame","(","{","``","a","''",":","[","[","3",",","2",",","1","]",",","[","]",",","[","1",",","2","]","]","}",")",">",">",">","df.with_columns","(","contains=pl.col","(","``","a","''",")",".list.contains","(","1",")",")","shape",":","(","3",",","2",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","a","\u2506","contains","\u2502","\u2502","--","-","\u2506","--","-","\u2502","\u2502","list","[","i64","]","\u2506","bool","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","[","3",",","2",",","1","]","\u2506","true","\u2502","\u2502","[","]","\u2506","false","\u2502","\u2502","[","1",",","2","]","\u2506","true","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"]
code: def contains(
      self,
      item: float | str | bool | int | date | datetime | time | Expr,
  ) -> Expr:
      """
      Check if sublists contain the given item.
  
      Parameters
      ----------
      item
          Item that will be checked for membership
  
      Returns
      -------
      Expr
          Expression of data type :class:`Boolean`.
  
      Examples
      --------
      >>> df = pl.DataFrame({"a": [[3, 2, 1], [], [1, 2]]})
      >>> df.with_columns(contains=pl.col("a").list.contains(1))
      shape: (3, 2)
      ┌───────────┬──────────┐
      │ a         ┆ contains │
      │ ---       ┆ ---      │
      │ list[i64] ┆ bool     │
      ╞═══════════╪══════════╡
      │ [3, 2, 1] ┆ true     │
      │ []        ┆ false    │
      │ [1, 2]    ┆ true     │
      └───────────┴──────────┘
  
      """
      item = parse_as_expression(item, str_as_lit=True)
      return wrap_expr(self._pyexpr.list_contains(item))
  
imports: from __future__ import annotations
  import copy
  from typing import TYPE_CHECKING, Any, Callable, Sequence
  import polars._reexport
  from polars import functions
  from polars.utils._parse_expr_input import parse_as_expression
  from polars.utils._wrap import wrap_expr
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter
label_desc: Use image node_id 20 for calling the ExprListNameSpace obj's underlying member method code with example usage: obj.contains(item) and returns: wrap_expr