# xarray.CFTimeIndex.isnull

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

Detect missing values.

Return a boolean same-sized object indicating if the values are NA.
NA values, such as `None`, `numpy.NaN` or `pd.NaT`, get
mapped to `True` values.
Everything else get mapped to `False` values. Characters such as
empty strings ‘’ or `numpy.inf` are not considered NA values.

* **Returns:**
  `numpy.ndarray[bool]` – A boolean array of whether my values are NA.

#### SEE ALSO
`Index.notna`
: Boolean inverse of isna.

`Index.dropna`
: Omit entries with missing values.

[`isna`](xarray.CFTimeIndex.isna.html.md#xarray.CFTimeIndex.isna)
: Top-level isna.

`Series.isna`
: Detect missing values in Series object.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('a1423deb-0be8-4408-9ce4-6d2ca522d705','3f4131f3-203d-42ce-8bc9-a6fff3dc5b5b','bc5f137c-d500-4140-b742-4a3650b564d4','../lite/tree/../notebooks/index.html?path=d1b7412e_7472_42ff_84b2_b0f83dad440d.ipynb','None')">Try it in your browser!</button></div>

Show which entries in a pandas.Index are 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.isna()
array([False, False,  True])
```

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

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

For datetimes, NaT (Not a Time) is considered as an NA value.

```pycon
>>> idx = pd.DatetimeIndex(
...     [pd.Timestamp("1940-04-25"), pd.Timestamp(""), None, pd.NaT]
... )
>>> idx
DatetimeIndex(['1940-04-25', 'NaT', 'NaT', 'NaT'],
              dtype='datetime64[us]', freq=None)
>>> idx.isna()
array([False,  True,  True,  True])
```

<div id="bc5f137c-d500-4140-b742-4a3650b564d4" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('a1423deb-0be8-4408-9ce4-6d2ca522d705','bc5f137c-d500-4140-b742-4a3650b564d4')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('a1423deb-0be8-4408-9ce4-6d2ca522d705','bc5f137c-d500-4140-b742-4a3650b564d4')">Open In Tab</button></div><div id="3f4131f3-203d-42ce-8bc9-a6fff3dc5b5b" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
