code: def delete(self, loc):
          
          return self._shallow_copy(np.delete(self._data, loc))
docs: Make new Index with passed location(-s) deleted.
  
          Returns
          -------
          new_index : Index