pandas.Index.slice_indexer
pandas 3.1.1 · Index objects · method
Build a positional slice for the requested label interval.
Call syntax
Index.slice_indexer(start=None, end=None, step=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
start |
Optional Positional or keyword Default None |
label Supply the start point of a range, slice, or calculation. |
end |
Optional Positional or keyword Default None |
label Supply the endpoint of the range or calculation. |
step |
Optional Positional or keyword Default None |
int Set how many positions to advance between successive selections or windows. |
Returns
slice