xorbits.pandas.Index.insert#

Index.insert(loc: int, item) pandas.core.indexes.base.Index[source]#

Make new Index inserting new item at location.

Follows Python numpy.insert semantics for negative values.

Parameters
  • loc (int) –

  • item (object) –

Return type

Index

Examples

>>> idx = pd.Index(['a', 'b', 'c'])  
>>> idx.insert(1, 'x')  
Index(['a', 'x', 'b', 'c'], dtype='object')

Warning

This method has not been implemented yet. Xorbits will try to execute it with pandas.

This docstring was copied from pandas.core.indexes.base.Index.