def _in(x, y):
 try:
  return x.isin(y)
 except AttributeError:
  if is_list_like(x):
   try:
    return y.isin(x)
   except AttributeError:
    pass
  return (x in y)

def _in ( x , y ) : try : return x . isin ( y ) except AttributeError : if is_list_like ( x ) : try : return y . isin ( x ) except AttributeError : pass return ( x in y )
compute the vectorized membership of x in y if possible .