pandas.Index.slice_indexer
-
Index.slice_indexer(start=None, end=None, step=None, kind=None)
[source] -
For an ordered Index, compute the slice indexer for input labels and step
Parameters: start : label, default None
If None, defaults to the beginning
end : label, default None
If None, defaults to the end
step : int, default None
kind : string, default None
Returns: indexer : ndarray or slice
Notes
This function assumes that the data is sorted, so use at your own peril
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.22.0/generated/pandas.Index.slice_indexer.html