# xarray.CFTimeIndex.notna

#### CFTimeIndex.notna()[[source]](https://github.com/pydata/xarray/blob/main/xarray/../.pixi/envs/doc/lib/python3.14/site-packages/pandas/core/indexes/base.py#L2697-L2739)

Detect existing (non-missing) values.

Return a boolean same-sized object indicating if the values are not NA.
Non-missing values get mapped to `True`. Characters such as empty
strings `''` or `numpy.inf` are not considered NA values.
NA values, such as None or `numpy.NaN`, get mapped to `False`
values.

* **Returns:**
  `numpy.ndarray[bool]` – Boolean array to indicate which entries are not NA.

#### SEE ALSO
`Index.notnull`
: Alias of notna.

`Index.isna`
: Inverse of notna.

[`notna`](#xarray.CFTimeIndex.notna)
: Top-level notna.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('4981f5b5-2746-4121-b31b-9d43dd6438e6','8bde0038-4613-43a5-9611-db0b2d52dc24','608b82c5-d295-45d7-93dc-8e1c3fbf3d19','../lite/tree/../notebooks/index.html?path=02bed176_246e_4fff_97b1_6d0893344a60.ipynb','None')">Try it in your browser!</button></div>

Show which entries in an Index are not NA. The result is an
array.

```pycon
>>> idx = pd.Index([5.2, 6.0, np.nan])
>>> idx
Index([5.2, 6.0, nan], dtype='float64')
>>> idx.notna()
array([ True,  True, False])
```

Empty strings are not considered NA values. None is considered a NA
value.

```pycon
>>> idx = pd.Index(["black", "", "red", None])
>>> idx
Index(['black', '', 'red', nan], dtype='str')
>>> idx.notna()
array([ True,  True,  True, False])
```

<div id="608b82c5-d295-45d7-93dc-8e1c3fbf3d19" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('4981f5b5-2746-4121-b31b-9d43dd6438e6','608b82c5-d295-45d7-93dc-8e1c3fbf3d19')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('4981f5b5-2746-4121-b31b-9d43dd6438e6','608b82c5-d295-45d7-93dc-8e1c3fbf3d19')">Open In Tab</button></div><div id="8bde0038-4613-43a5-9611-db0b2d52dc24" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
