@Appender(_index_shared_docs['_shallow_copy'])
    def _shallow_copy(self, values=None, **kwargs):
        if values is None:
            values = self.values
        attributes = self._get_attributes_dict()
        attributes.update(kwargs)
        return self._simple_new(values, **attributes)
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index._shallow_copy/original