pandas / 0.23.4 / generated / pandas.intervalindex.contains.html /

pandas.IntervalIndex.contains

IntervalIndex.contains(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

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.IntervalIndex.contains.html