# xarray.CFTimeIndex.any

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

Return whether any element is Truthy.

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

* **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('003c76a9-fdb8-4a25-8e28-b1f18cd93df3','edfecdde-6fa7-4fe6-ba20-e195918dd5b5','7dbe323b-0488-4e67-b445-1b720d29ca60','../lite/tree/../notebooks/index.html?path=5618553e_c9bb_47fb_89d1_79dd96d0f498.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="7dbe323b-0488-4e67-b445-1b720d29ca60" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('003c76a9-fdb8-4a25-8e28-b1f18cd93df3','7dbe323b-0488-4e67-b445-1b720d29ca60')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('003c76a9-fdb8-4a25-8e28-b1f18cd93df3','7dbe323b-0488-4e67-b445-1b720d29ca60')">Open In Tab</button></div><div id="edfecdde-6fa7-4fe6-ba20-e195918dd5b5" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
