class_docstr: Namespace for list related expressions.
class_docstr_tok: ["Namespace","for","list","related","expressions","."]
docstr: Compute the SET INTERSECTION between the elements in this list and the elements of `other`.
  
  Parameters
  ----------
  other
      Right hand side of the set operation.
  
  Examples
  --------
  >>> df = pl.DataFrame(
  ...     {
  ...         "a": [[1, 2, 3], [], [None, 3], [5, 6, 7]],
  ...         "b": [[2, 3, 4], [3], [3, 4, None], [6, 8]],
  ...     }
  ... )
  >>> df.with_columns(intersection=pl.col("a").list.set_intersection("b"))
  shape: (4, 3)
  ┌───────────┬──────────────┬──────────────┐
  │ a         ┆ b            ┆ intersection │
  │ ---       ┆ ---          ┆ ---          │
  │ list[i64] ┆ list[i64]    ┆ list[i64]    │
  ╞═══════════╪══════════════╪══════════════╡
  │ [1, 2, 3] ┆ [2, 3, 4]    ┆ [2, 3]       │
  │ []        ┆ [3]          ┆ []           │
  │ [null, 3] ┆ [3, 4, null] ┆ [null, 3]    │
  │ [5, 6, 7] ┆ [6, 8]       ┆ [6]          │
  └───────────┴──────────────┴──────────────┘
docstr_tok: ["Compute","the","SET","INTERSECTION","between","the","elements","in","this","list","and","the","elements","of","`","other","`",".","Parameters","--","--","--","--","--","other","Right","hand","side","of","the","set","operation",".","Examples","--","--","--","--",">",">",">","df","=","pl.DataFrame","(","...","{","...","``","a","''",":","[","[","1",",","2",",","3","]",",","[","]",",","[","None",",","3","]",",","[","5",",","6",",","7","]","]",",","...","``","b","''",":","[","[","2",",","3",",","4","]",",","[","3","]",",","[","3",",","4",",","None","]",",","[","6",",","8","]","]",",","...","}","...",")",">",">",">","df.with_columns","(","intersection=pl.col","(","``","a","''",")",".list.set_intersection","(","``","b","''",")",")","shape",":","(","4",",","3",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","a","\u2506","b","\u2506","intersection","\u2502","\u2502","--","-","\u2506","--","-","\u2506","--","-","\u2502","\u2502","list","[","i64","]","\u2506","list","[","i64","]","\u2506","list","[","i64","]","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","[","1",",","2",",","3","]","\u2506","[","2",",","3",",","4","]","\u2506","[","2",",","3","]","\u2502","\u2502","[","]","\u2506","[","3","]","\u2506","[","]","\u2502","\u2502","[","null",",","3","]","\u2506","[","3",",","4",",","null","]","\u2506","[","null",",","3","]","\u2502","\u2502","[","5",",","6",",","7","]","\u2506","[","6",",","8","]","\u2506","[","6","]","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"]
code: def set_intersection(self, other: IntoExpr) -> Expr:
      """
      Compute the SET INTERSECTION between the elements in this list and the elements of `other`.
  
      Parameters
      ----------
      other
          Right hand side of the set operation.
  
      Examples
      --------
      >>> df = pl.DataFrame(
      ...     {
      ...         "a": [[1, 2, 3], [], [None, 3], [5, 6, 7]],
      ...         "b": [[2, 3, 4], [3], [3, 4, None], [6, 8]],
      ...     }
      ... )
      >>> df.with_columns(intersection=pl.col("a").list.set_intersection("b"))
      shape: (4, 3)
      ┌───────────┬──────────────┬──────────────┐
      │ a         ┆ b            ┆ intersection │
      │ ---       ┆ ---          ┆ ---          │
      │ list[i64] ┆ list[i64]    ┆ list[i64]    │
      ╞═══════════╪══════════════╪══════════════╡
      │ [1, 2, 3] ┆ [2, 3, 4]    ┆ [2, 3]       │
      │ []        ┆ [3]          ┆ []           │
      │ [null, 3] ┆ [3, 4, null] ┆ [null, 3]    │
      │ [5, 6, 7] ┆ [6, 8]       ┆ [6]          │
      └───────────┴──────────────┴──────────────┘
  
      """  # noqa: W505.
      other = parse_as_expression(other, str_as_lit=False)
      return wrap_expr(
          self._pyexpr.list_set_operation(other, "intersection")
      )
  
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 36 for calling the ExprListNameSpace obj's underlying member method code with example usage: obj.set_intersection(other) and returns: wrap_expr