# xarray.CFTimeIndex.all

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

Return whether all elements are Truthy.

* **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('16b207af-4195-49b3-9c3b-2c26c2e31369','ea38f45a-9844-4d20-bbc7-80497be00df1','c0f06dec-0b32-4526-a72b-69f796bcc5f3','../lite/tree/../notebooks/index.html?path=e47dcf23_ffc3_4f75_812b_7114354fcdc8.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="c0f06dec-0b32-4526-a72b-69f796bcc5f3" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('16b207af-4195-49b3-9c3b-2c26c2e31369','c0f06dec-0b32-4526-a72b-69f796bcc5f3')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('16b207af-4195-49b3-9c3b-2c26c2e31369','c0f06dec-0b32-4526-a72b-69f796bcc5f3')">Open In Tab</button></div><div id="ea38f45a-9844-4d20-bbc7-80497be00df1" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
