pandas / 0.25.0 / reference / api / pandas.index.contains.html /

pandas.Index.contains

Index.contains(self, key) [source]

Return a boolean indicating whether the provided key is in the index.

Deprecated since version 0.25.0: Use key in index instead of index.contains(key).

Returns:
bool

© 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.25.0/reference/api/pandas.Index.contains.html