def isin(self, values):
if not isinstance(values, type(self)):<EOL><INDENT>try:<EOL><INDENT>values = type(self)(values)<EOL><DEDENT>except ValueError:<EOL><INDENT>return self.astype(object).isin(values)<EOL><DEDENT><DEDENT>return algorithms.isin(self.asi8, values.asi8)<EOL>
Compute boolean array of whether each index value is found in the
passed set of values.

Parameters
----------
values : set or sequence of values

Returns
-------
is_contained : ndarray (boolean dtype)