pandas.MultiIndex.get_locs

pandas 3.1.1 · Index objects · method

Get integer row locations matching a selection across MultiIndex levels.

Call syntax

MultiIndex.get_locs(seq)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
seq Required
Positional or keyword
label, slice, list, mask or a sequence of such

Returns

numpy.ndarray