# xarray.CFTimeIndex.to_list

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

Return a list of the values.

These are each a scalar type, which is a Python scalar
(for str, int, float) or a pandas scalar
(for Timestamp/Timedelta/Interval/Period)

* **Returns:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list) – List containing the values as Python or pandas scalers.

#### SEE ALSO
[`numpy.ndarray.tolist`](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.tolist.html#numpy.ndarray.tolist)
: Return the array as an a.ndim-levels deep nested list of Python scalars.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('74553b04-4023-4602-a9bb-a9f4e5c68269','9dfcbc65-22fa-48b3-bd2c-c090da4ec3f8','7820ea20-a80e-44a3-85b2-cbc25749d865','../lite/tree/../notebooks/index.html?path=be5dab3e_e757_4c38_a801_67dd8021f7b2.ipynb','None')">Try it in your browser!</button></div>

For Series

```pycon
>>> s = pd.Series([1, 2, 3])
>>> s.to_list()
[1, 2, 3]
```

For Index:

```pycon
>>> idx = pd.Index([1, 2, 3])
>>> idx
Index([1, 2, 3], dtype='int64')
```

```pycon
>>> idx.to_list()
[1, 2, 3]
```

<div id="7820ea20-a80e-44a3-85b2-cbc25749d865" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('74553b04-4023-4602-a9bb-a9f4e5c68269','7820ea20-a80e-44a3-85b2-cbc25749d865')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('74553b04-4023-4602-a9bb-a9f4e5c68269','7820ea20-a80e-44a3-85b2-cbc25749d865')">Open In Tab</button></div><div id="9dfcbc65-22fa-48b3-bd2c-c090da4ec3f8" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
