class_docstr: Namespace for array related expressions.
class_docstr_tok: ["Namespace","for","array","related","expressions","."]
docstr: Evaluate whether all boolean values are true for every subarray.
  
  Examples
  --------
  >>> df = pl.DataFrame(
  ...     data={
  ...         "a": [
  ...             [True, True],
  ...             [False, True],
  ...             [False, False],
  ...             [None, None],
  ...             None,
  ...         ]
  ...     },
  ...     schema={"a": pl.Array(pl.Boolean, 2)},
  ... )
  >>> df.with_columns(all=pl.col("a").arr.all())
  shape: (5, 2)
  ┌────────────────┬───────┐
  │ a              ┆ all   │
  │ ---            ┆ ---   │
  │ array[bool, 2] ┆ bool  │
  ╞════════════════╪═══════╡
  │ [true, true]   ┆ true  │
  │ [false, true]  ┆ false │
  │ [false, false] ┆ false │
  │ [null, null]   ┆ true  │
  │ null           ┆ null  │
  └────────────────┴───────┘
docstr_tok: ["Evaluate","whether","all","boolean","values","are","true","for","every","subarray",".","Examples","--","--","--","--",">",">",">","df","=","pl.DataFrame","(","...","data=","{","...","``","a","''",":","[","...","[","True",",","True","]",",","...","[","False",",","True","]",",","...","[","False",",","False","]",",","...","[","None",",","None","]",",","...","None",",","...","]","...","}",",","...","schema=","{","``","a","''",":","pl.Array","(","pl.Boolean",",","2",")","}",",","...",")",">",">",">","df.with_columns","(","all=pl.col","(","``","a","''",")",".arr.all","(",")",")","shape",":","(","5",",","2",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","a","\u2506","all","\u2502","\u2502","--","-","\u2506","--","-","\u2502","\u2502","array","[","bool",",","2","]","\u2506","bool","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","[","true",",","true","]","\u2506","true","\u2502","\u2502","[","false",",","true","]","\u2506","false","\u2502","\u2502","[","false",",","false","]","\u2506","false","\u2502","\u2502","[","null",",","null","]","\u2506","true","\u2502","\u2502","null","\u2506","null","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"]
code: def all(self) -> Expr:
      """
      Evaluate whether all boolean values are true for every subarray.
  
      Examples
      --------
      >>> df = pl.DataFrame(
      ...     data={
      ...         "a": [
      ...             [True, True],
      ...             [False, True],
      ...             [False, False],
      ...             [None, None],
      ...             None,
      ...         ]
      ...     },
      ...     schema={"a": pl.Array(pl.Boolean, 2)},
      ... )
      >>> df.with_columns(all=pl.col("a").arr.all())
      shape: (5, 2)
      ┌────────────────┬───────┐
      │ a              ┆ all   │
      │ ---            ┆ ---   │
      │ array[bool, 2] ┆ bool  │
      ╞════════════════╪═══════╡
      │ [true, true]   ┆ true  │
      │ [false, true]  ┆ false │
      │ [false, false] ┆ false │
      │ [null, null]   ┆ true  │
      │ null           ┆ null  │
      └────────────────┴───────┘
  
      """
      return wrap_expr(self._pyexpr.arr_all())
  
file_path: polars/py-polars/polars/expr/array.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from polars.utils._wrap import wrap_expr
label_desc: Use image node_id 8 for calling the ExprArrayNameSpace obj's underlying member method code with example usage: obj.all() and returns: wrap_expr