# xarray.Variable.all

#### Variable.all(dim=None, \*\*kwargs)[[source]](https://github.com/pydata/xarray/blob/main/xarray/namedarray/_aggregations.py#L80-L132)

Reduce this NamedArray’s data by applying `all` along some dimension(s).

* **Parameters:**
  * **dim** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str), `Iterable` of `Hashable`, `"..."` or [`None`](https://docs.python.org/3/builtins/constants.html#None), *default*: [`None`](https://docs.python.org/3/builtins/constants.html#None)) – Name of dimension[s] along which to apply `all`. For e.g. `dim="x"`
    or `dim=["x", "y"]`. If “…” or None, will reduce over all dimensions.
  * **\*\*kwargs** (`Any`) – Additional keyword arguments passed on to the appropriate array
    function for calculating `all` on this object’s data.
    These could include dask-specific kwargs like `split_every`.
* **Returns:**
  **reduced** (`NamedArray`) – New NamedArray with `all` applied to its data and the
  indicated dimension(s) removed

#### SEE ALSO
[`numpy.all`](https://numpy.org/doc/stable/reference/generated/numpy.all.html#numpy.all), [`dask.array.all`](https://docs.dask.org/en/latest/generated/dask.array.all.html#dask.array.all), [`Dataset.all`](xarray.Dataset.all.html.md#xarray.Dataset.all), [`DataArray.all`](xarray.DataArray.all.html.md#xarray.DataArray.all)

[Aggregation](../user-guide/computation.html.md#agg)
: User guide on reduction or aggregation operations.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('74a69254-3f97-4eb5-b4e2-7d88f9be72cc','bde112ea-04ce-4b51-9bd5-0b1a93dabf26','16b0fe85-e269-4359-99f6-6eea68100a87','../lite/tree/../notebooks/index.html?path=7be76a58_67d9_4cc1_9c0f_e89c5a362ea6.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> from xarray.namedarray.core import NamedArray
>>> na = NamedArray(
...     "x", np.array([True, True, True, True, True, False], dtype=bool)
... )
>>> na
<xarray.NamedArray (x: 6)> Size: 6B
array([ True,  True,  True,  True,  True, False])
```

```pycon
>>> na.all()
<xarray.NamedArray ()> Size: 1B
array(False)
```

<div id="16b0fe85-e269-4359-99f6-6eea68100a87" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('74a69254-3f97-4eb5-b4e2-7d88f9be72cc','16b0fe85-e269-4359-99f6-6eea68100a87')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('74a69254-3f97-4eb5-b4e2-7d88f9be72cc','16b0fe85-e269-4359-99f6-6eea68100a87')">Open In Tab</button></div><div id="bde112ea-04ce-4b51-9bd5-0b1a93dabf26" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
