pandas.Index.slice_locs¶
- Index.slice_locs(start=None, end=None)¶
For an ordered Index, compute the slice locations for input labels
Parameters: start : label, default None
If None, defaults to the beginning
end : label, default None
If None, defaults to the end
Returns: (start, end) : (int, int)
Notes
This function assumes that the data is sorted, so use at your own peril