# 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('c91c3081-f66e-48e9-8496-d0839350a77c','a25c6b1a-a5ed-4039-8bb3-fedb7d2c166c','a5ebab14-836f-4984-beef-87e275feaade','../lite/tree/../notebooks/index.html?path=69a64a80_897a_4266_9c6d_8679a40adc9b.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="a5ebab14-836f-4984-beef-87e275feaade" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('c91c3081-f66e-48e9-8496-d0839350a77c','a5ebab14-836f-4984-beef-87e275feaade')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('c91c3081-f66e-48e9-8496-d0839350a77c','a5ebab14-836f-4984-beef-87e275feaade')">Open In Tab</button></div><div id="a25c6b1a-a5ed-4039-8bb3-fedb7d2c166c" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
