def copy(self, deep=True):
        # there is no need to copy the index values here even if deep=True
        # since pandas.Index objects are immutable
        data = PandasIndexAdapter(self) if deep else self._data
        return type(self)(self.dims, data, self._attrs, self._encoding,
                          fastpath=True)
Returns a copy of this object.
dataset/ETHPy150Open pydata/xarray/xarray/core/variable.py/Coordinate.copy