# 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('55f76045-7101-42a5-9bcf-2091123fb177','6d693409-e754-4c25-9e65-1c5b3f36715b','892a1b33-8fee-4235-89af-8d5e478360c1','../lite/tree/../notebooks/index.html?path=725cd818_d4e1_4774_bd3f_994eec75276c.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="892a1b33-8fee-4235-89af-8d5e478360c1" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('55f76045-7101-42a5-9bcf-2091123fb177','892a1b33-8fee-4235-89af-8d5e478360c1')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('55f76045-7101-42a5-9bcf-2091123fb177','892a1b33-8fee-4235-89af-8d5e478360c1')">Open In Tab</button></div><div id="6d693409-e754-4c25-9e65-1c5b3f36715b" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
