parameters: (self, other_column)
return_statement: return compatible
docstring: Check compatability of two sparse columns.
docstring_summary: Check compatability of two sparse columns.
docstring_tokens: Check compatability of two sparse columns .
function: def is_compatible(self, other_column):
      """Check compatability of two sparse columns."""
      if self.lookup_config and other_column.lookup_config:
        return self.lookup_config == other_column.lookup_config
      compatible = (self.length == other_column.length and
                    (self.dtype == other_column.dtype or
                     (self.dtype.is_integer and other_column.dtype.is_integer)))
      if compatible:
        logging.warn("Column {} and {} may not have the same vocabulary.".
                     format(self.name, other_column.name))
      return compatible
function_tokens: def is_compatible ( self , other_column ) : if self . lookup_config and other_column . lookup_config : return self . lookup_config == other_column . lookup_config compatible = ( self . length == other_column . length and ( self . dtype == other_column . dtype or ( self . dtype . is_integer and other_column . dtype . is_integer ) ) ) if compatible : logging . warn ( "Column {} and {} may not have the same vocabulary." . format ( self . name , other_column . name ) ) return compatible