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
Scroll To Top