# xarray.CFTimeIndex.notnull

#### CFTimeIndex.notnull()[[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.html.md#xarray.CFTimeIndex.notna)
: Top-level notna.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('dfe16477-e62e-4870-b8aa-f7f4ee6fc439','78f6eff9-85cc-4b76-aeff-017140ec99ea','28f5ba50-64c4-4f70-9f7e-6fd9936c383e','../lite/tree/../notebooks/index.html?path=bf8e042a_bd9c_414e_ab52_0addbf1d0903.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="28f5ba50-64c4-4f70-9f7e-6fd9936c383e" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('dfe16477-e62e-4870-b8aa-f7f4ee6fc439','28f5ba50-64c4-4f70-9f7e-6fd9936c383e')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('dfe16477-e62e-4870-b8aa-f7f4ee6fc439','28f5ba50-64c4-4f70-9f7e-6fd9936c383e')">Open In Tab</button></div><div id="78f6eff9-85cc-4b76-aeff-017140ec99ea" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
