# xarray.CFTimeIndex.any

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

Return whether any element is 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.all`
: Return whether all elements are True.

`Series.all`
: Return whether all elements 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('68de6d9c-b68f-4afc-bc9a-e516f2891d74','34e00b62-e909-415e-b013-ca5cbc5e8f3d','50ae326d-7ca0-4555-9e7e-4d39912a3ae4','../lite/tree/../notebooks/index.html?path=8ac42066_8758_4c14_ba0f_d316deaba00f.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> index = pd.Index([0, 1, 2])
>>> index.any()
True
```

```pycon
>>> index = pd.Index([0, 0, 0])
>>> index.any()
False
```

<div id="50ae326d-7ca0-4555-9e7e-4d39912a3ae4" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('68de6d9c-b68f-4afc-bc9a-e516f2891d74','50ae326d-7ca0-4555-9e7e-4d39912a3ae4')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('68de6d9c-b68f-4afc-bc9a-e516f2891d74','50ae326d-7ca0-4555-9e7e-4d39912a3ae4')">Open In Tab</button></div><div id="34e00b62-e909-415e-b013-ca5cbc5e8f3d" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
