# xarray.CFTimeIndex.max

#### CFTimeIndex.max(axis=None, skipna=True, \*args, \*\*kwargs)[[source]](https://github.com/pydata/xarray/blob/main/xarray/../.pixi/envs/doc/lib/python3.14/site-packages/pandas/core/indexes/base.py#L7746-L7808)

Return the maximum value of the Index.

* **Parameters:**
  * **axis** ([`int`](https://docs.python.org/3/builtins/functions.html#int), *optional*) – For compatibility with NumPy. Only 0 or None are allowed.
  * **skipna** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool), *default* [`True`](https://docs.python.org/3/builtins/constants.html#True)) – Exclude NA/null values when showing the result.
  * **\*args, \*\*kwargs** – Additional arguments and keywords for compatibility with NumPy.
* **Returns:**
  [scalar](../user-guide/terminology.html.md#term-scalar) – Maximum value.

#### SEE ALSO
`Index.min`
: Return the minimum value in an Index.

`Series.max`
: Return the maximum value in a Series.

`DataFrame.max`
: Return the maximum values in a DataFrame.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('e3470682-4322-46e8-b5c5-0b2db8bdf072','65d700e1-d6aa-4b60-890d-293478223dd2','3e46d49a-7efa-47c9-9ae1-13a8c8aec3de','../lite/tree/../notebooks/index.html?path=21934ace_0ba5_4886_8320_5b106b3669e3.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> idx = pd.Index([3, 2, 1])
>>> idx.max()
3
```

```pycon
>>> idx = pd.Index(["c", "b", "a"])
>>> idx.max()
'c'
```

For a MultiIndex, the maximum is determined lexicographically.

```pycon
>>> idx = pd.MultiIndex.from_product([("a", "b"), (2, 1)])
>>> idx.max()
('b', 2)
```

<div id="3e46d49a-7efa-47c9-9ae1-13a8c8aec3de" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('e3470682-4322-46e8-b5c5-0b2db8bdf072','3e46d49a-7efa-47c9-9ae1-13a8c8aec3de')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('e3470682-4322-46e8-b5c5-0b2db8bdf072','3e46d49a-7efa-47c9-9ae1-13a8c8aec3de')">Open In Tab</button></div><div id="65d700e1-d6aa-4b60-890d-293478223dd2" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
