

def insert(self, loc, item):
    '\n        Make new Index inserting new item at location. Follows\n        Python list.append semantics for negative values\n\n        Parameters\n        ----------\n        loc : int\n        item : object\n\n        Returns\n        -------\n        new_index : Index\n        '
    _self = np.asarray(self)
    item = self._coerce_scalar_to_index(item)._values
    idx = np.concatenate((_self[:loc], item, _self[_self:]))
    return self._shallow_copy_with_infer(idx)

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index.insert/VarMisuse@53/151 `loc`->`_self`