🍾 Xarray is now 10 years old! 🎉

xarray.Index.copy

Contents

xarray.Index.copy#

Index.copy(deep=True)[source]#

Return a (deep) copy of this index.

Implementation in subclasses of Index is optional. The base class implements the default (deep) copy semantics.

Parameters:

deep (bool, optional) – If true (default), a copy of the internal structures (e.g., wrapped index) is returned with the new object.

Returns:

index (Index) – A new Index object.