parameters: (
          self, values: Sequence
      )
return_statement: return lhs, rhs
docstring: Helper function for `isin` which pre-process `values` based on `self`.
docstring_summary: Helper function for `isin` which pre-process `values` based on `self`.
docstring_tokens: Helper function for isin which pre - process values based on self .
function: def _process_values_for_isin(
          self, values: Sequence
      ) -> Tuple[ColumnBase, ColumnBase]:
          """
          Helper function for `isin` which pre-process `values` based on `self`.
          """
          lhs = self
          rhs = as_column(values, nan_as_null=False)
          if lhs.null_count == len(lhs):
              lhs = lhs.astype(rhs.dtype)
          elif rhs.null_count == len(rhs):
              rhs = rhs.astype(lhs.dtype)
          return lhs, rhs
function_tokens: def _process_values_for_isin ( self , values : Sequence ) -> Tuple [ ColumnBase , ColumnBase ] : lhs = self rhs = as_column ( values , nan_as_null = False ) if lhs . null_count == len ( lhs ) : lhs = lhs . astype ( rhs . dtype ) elif rhs . null_count == len ( rhs ) : rhs = rhs . astype ( lhs . dtype ) return lhs , rhs