# xarray.CFTimeIndex.notnull

#### CFTimeIndex.notnull()[[source]](https://github.com/pydata/xarray/blob/main/xarray/../.pixi/envs/doc/lib/python3.15/site-packages/pandas/core/indexes/base.py#L2813-L2855)

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('70233d7f-ed78-4d16-9f85-5ac7af4ea332','e284e1d7-9f04-470e-98e5-8fbcb0261bab','89f97dd0-3793-4510-955c-f80b41f476ff','../lite/tree/../notebooks/index.html?path=d75b5be1_a201_453d_963f_d9cff9e869ed.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="89f97dd0-3793-4510-955c-f80b41f476ff" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('70233d7f-ed78-4d16-9f85-5ac7af4ea332','89f97dd0-3793-4510-955c-f80b41f476ff')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('70233d7f-ed78-4d16-9f85-5ac7af4ea332','89f97dd0-3793-4510-955c-f80b41f476ff')">Open In Tab</button></div><div id="e284e1d7-9f04-470e-98e5-8fbcb0261bab" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
