# xarray.CFTimeIndex.copy

#### CFTimeIndex.copy(name=None, deep=False)[[source]](https://github.com/pydata/xarray/blob/main/xarray/../.pixi/envs/doc/lib/python3.14/site-packages/pandas/core/indexes/base.py#L1375-L1422)

Make a copy of this object.

Name is set on the new object.

* **Parameters:**
  * **name** (`Label`, *optional*) – Set name for new object.
  * **deep** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool), *default* [`False`](https://docs.python.org/3/builtins/constants.html#False)) –

    If True attempts to make a deep copy of the Index.
    : Else makes a shallow copy.
* **Returns:**
  [`Index`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.html#pandas.Index) – Index refer to new object which is a copy of this object.

#### SEE ALSO
`Index.delete`
: Make new Index with passed location(-s) deleted.

`Index.drop`
: Make new Index with passed list of labels deleted.

### Notes

In most cases, there should be no functional difference from using
`deep`, but if `deep` is passed it will attempt to deepcopy.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('80f6b9ed-2145-420e-9b52-f9f09277facd','7a458098-b314-4df2-9de1-c7676f428dd4','91c65425-40b1-43e7-a0ee-4138fca62351','../lite/tree/../notebooks/index.html?path=c56d3fad_3f42_43de_87c9_1dfe09200490.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> idx = pd.Index(["a", "b", "c"])
>>> new_idx = idx.copy()
>>> idx is new_idx
False
```

<div id="91c65425-40b1-43e7-a0ee-4138fca62351" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('80f6b9ed-2145-420e-9b52-f9f09277facd','91c65425-40b1-43e7-a0ee-4138fca62351')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('80f6b9ed-2145-420e-9b52-f9f09277facd','91c65425-40b1-43e7-a0ee-4138fca62351')">Open In Tab</button></div><div id="7a458098-b314-4df2-9de1-c7676f428dd4" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
