# xarray.CFTimeIndex.copy

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

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('11bf21e2-a828-415e-8b51-fc8613ee9c6e','dec60912-7216-4a9f-a634-4ef68fcfc4ba','a2697ed5-c54c-48eb-8de3-c08049857fb9','../lite/tree/../notebooks/index.html?path=0d132996_d8f6_4ff8_ade1_61e28ef060cd.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="a2697ed5-c54c-48eb-8de3-c08049857fb9" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('11bf21e2-a828-415e-8b51-fc8613ee9c6e','a2697ed5-c54c-48eb-8de3-c08049857fb9')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('11bf21e2-a828-415e-8b51-fc8613ee9c6e','a2697ed5-c54c-48eb-8de3-c08049857fb9')">Open In Tab</button></div><div id="dec60912-7216-4a9f-a634-4ef68fcfc4ba" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
