pandas.Index.get_slice_bound
pandas 3.1.1 · Index objects · method
Find the integer start or end boundary of a label slice.
Call syntax
Index.get_slice_bound(label, side)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
label |
Required Positional or keyword |
object Provide the label used to identify an entry or mark a result. |
side |
Required Positional or keyword |
{'left', 'right'} Choose the side of the search, interval, or padding operation. |
Returns
int