def delete(self, loc):
        return self._shallow_copy(np.delete(self._data, loc))
Make new Index with passed location(-s) deleted
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index.delete