pandas.Index.get_slice_bound#

Index.get_slice_bound(label, side)[source]#

Calculate slice bound that corresponds to given label.

Returns leftmost (one-past-the-rightmost if side=='right') position of given label.

Parameters
labelobject
side{‘left’, ‘right’}
Returns
int

Index of label.