Index.slice_locs(self, start=None, end=None, step=None, kind=None) [source]
Compute slice locations for input labels.
| Parameters: |
|
|---|---|
| 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.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Index.slice_locs.html