# 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('4f607793-9c5c-4166-b06d-41eda762c36c','bec98721-0a69-427d-bf08-2a1f4b7b2dc7','659e5fd1-3d11-46fb-af5c-becabcfff5fd','../lite/tree/../notebooks/index.html?path=e8d112a1_fd5a_4fd4_b4e6_2ddd936885ed.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="659e5fd1-3d11-46fb-af5c-becabcfff5fd" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('4f607793-9c5c-4166-b06d-41eda762c36c','659e5fd1-3d11-46fb-af5c-becabcfff5fd')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('4f607793-9c5c-4166-b06d-41eda762c36c','659e5fd1-3d11-46fb-af5c-becabcfff5fd')">Open In Tab</button></div><div id="bec98721-0a69-427d-bf08-2a1f4b7b2dc7" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
