# xarray.CFTimeIndex.tolist

#### CFTimeIndex.tolist()[[source]](https://github.com/pydata/xarray/blob/main/xarray/../.pixi/envs/doc/lib/python3.15/site-packages/pandas/core/base.py#L948-L983)

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('5ec7f964-0e76-456e-8a2a-0e44dc899567','d2b3350d-b7c7-4029-99ea-8f011c2e907e','18c1fffa-5140-445f-af88-97723f0599cb','../lite/tree/../notebooks/index.html?path=fbed0652_8684_4da5_97cf_728c00e7f02b.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="18c1fffa-5140-445f-af88-97723f0599cb" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('5ec7f964-0e76-456e-8a2a-0e44dc899567','18c1fffa-5140-445f-af88-97723f0599cb')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('5ec7f964-0e76-456e-8a2a-0e44dc899567','18c1fffa-5140-445f-af88-97723f0599cb')">Open In Tab</button></div><div id="d2b3350d-b7c7-4029-99ea-8f011c2e907e" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
