pandas.arrays.IntervalArray.contains

pandas 3.1.1 · Arrays, scalars, and data types · method

Check which intervals contain a given point, taking open and closed endpoints into account.

Call syntax

IntervalArray.contains(other)

Run the example

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

Parameters

ParameterRequirementAccepted values and behavior
other Required
Positional or keyword
scalar

Supply the second object or value used in the operation.

Returns

boolean array