# xarray.CFTimeIndex.all

#### CFTimeIndex.all(\*args, \*\*kwargs)[[source]](https://github.com/pydata/xarray/blob/main/xarray/../.pixi/envs/doc/lib/python3.15/site-packages/pandas/core/indexes/base.py#L7889-L7938)

Return whether all elements are Truthy.

This is equivalent to calling `bool(self.all())`. An empty Index
will return True.

* **Parameters:**
  * **\*args** – Required for compatibility with numpy.
  * **\*\*kwargs** – Required for compatibility with numpy.
* **Returns:**
  [`bool`](https://docs.python.org/3/builtins/functions.html#bool) or `array-like (if axis is specified)` – A single element array-like may be converted to bool.

#### SEE ALSO
`Index.any`
: Return whether any element in an Index is True.

`Series.any`
: Return whether any element in a Series is True.

`Series.all`
: Return whether all elements in a Series are True.

### Notes

Not a Number (NaN), positive infinity and negative infinity
evaluate to True because these are not equal to zero.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('b28ebd59-3742-4804-aebc-357dc362df19','b19b02a0-1c50-4cfd-81e0-5b25f30d4594','18a5c0c8-7fd4-40a1-8927-ac5570e55991','../lite/tree/../notebooks/index.html?path=5a551091_eab9_4e14_b6a2_76d57e8c4f0c.ipynb','None')">Try it in your browser!</button></div>

True, because nonzero integers are considered True.

```pycon
>>> pd.Index([1, 2, 3]).all()
True
```

False, because `0` is considered False.

```pycon
>>> pd.Index([0, 1, 2]).all()
False
```

<div id="18a5c0c8-7fd4-40a1-8927-ac5570e55991" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('b28ebd59-3742-4804-aebc-357dc362df19','18a5c0c8-7fd4-40a1-8927-ac5570e55991')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('b28ebd59-3742-4804-aebc-357dc362df19','18a5c0c8-7fd4-40a1-8927-ac5570e55991')">Open In Tab</button></div><div id="b19b02a0-1c50-4cfd-81e0-5b25f30d4594" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
