Index.slice_locs(start=None, end=None, step=None, kind=None) [source]
Compute 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 step : int, defaults None If None, defaults to 1
|
|---|---|
| Returns: |
|
See also
Index.get_loc
This method only works if the index is monotonic or unique.
>>> idx = pd.Index(list('abcd'))
>>> idx.slice_locs(start='b', end='c')
(1, 3)
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.Index.slice_locs.html