Compute slice locations for input labels.
If None, defaults to the beginning.
If None, defaults to the end.
If None, defaults to 1.
Returns a tuple of two integers representing the slice locations for the input labels within the index.
Notes
This method only works if the index is monotonic or unique.
Examples
>>> idx = pd.Index(list("abcd")) >>> idx.slice_locs(start="b", end="c") (1, 3)
>>> idx = pd.Index(list("bcde")) >>> idx.slice_locs(start="a", end="c") (0, 2)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4