# 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('bca599d5-7e47-473b-b761-48d526b8bf90','9800e0c7-3139-40dd-ac86-daa34e30f6b3','18181f6d-562d-4695-b501-a365a49b9f3c','../lite/tree/../notebooks/index.html?path=6b57ab18_bd9b_4be1_91fb_e789df672fb4.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="18181f6d-562d-4695-b501-a365a49b9f3c" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('bca599d5-7e47-473b-b761-48d526b8bf90','18181f6d-562d-4695-b501-a365a49b9f3c')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('bca599d5-7e47-473b-b761-48d526b8bf90','18181f6d-562d-4695-b501-a365a49b9f3c')">Open In Tab</button></div><div id="9800e0c7-3139-40dd-ac86-daa34e30f6b3" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
