# xarray.CFTimeIndex.fillna

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

Fill NA/NaN values with the specified value.

* **Parameters:**
  **value** ([scalar](../user-guide/terminology.html.md#term-scalar)) – Scalar value to use to fill holes (e.g. 0).
  This value cannot be a list-likes.
* **Returns:**
  [`Index`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.html#pandas.Index) – NA/NaN values replaced with value.

#### SEE ALSO
`DataFrame.fillna`
: Fill NaN values of a DataFrame.

`Series.fillna`
: Fill NaN Values of a Series.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('cbe6b905-2ea8-489a-a567-54f59f8d9177','7d1356f5-de54-4ea3-8ef4-6b6003a1c78e','0398b1e6-5d48-407a-afd1-6db937bc1ef1','../lite/tree/../notebooks/index.html?path=371e899f_9a84_468f_8816_c3a5a28df362.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> idx = pd.Index([np.nan, np.nan, 3])
>>> idx.fillna(0)
Index([0.0, 0.0, 3.0], dtype='float64')
```

<div id="0398b1e6-5d48-407a-afd1-6db937bc1ef1" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('cbe6b905-2ea8-489a-a567-54f59f8d9177','0398b1e6-5d48-407a-afd1-6db937bc1ef1')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('cbe6b905-2ea8-489a-a567-54f59f8d9177','0398b1e6-5d48-407a-afd1-6db937bc1ef1')">Open In Tab</button></div><div id="7d1356f5-de54-4ea3-8ef4-6b6003a1c78e" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
