pandas.Index.delete

pandas 3.1.1 · Index objects · method

Remove index entries at the specified integer positions.

Call syntax

Index.delete(loc)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
loc Required
Positional or keyword
int or list of int

Supply a zero-based position where a label or item should be inserted or read.

Returns

Index