pandas.IntervalIndex.contains

IntervalIndex.contains(self, key)[source]

Return a boolean indicating if the key is IN the index

We accept / allow keys to be not just actual objects.

Parameters:
key : int, float, Interval
Returns:
boolean
Scroll To Top