docstr: Check whether 'other' is equal to self.
  
  By default, 'other' is considered equal if either
  
  * it's a string matching 'self.name'.
  * it's an instance of this type and all of the
    the attributes in ``self._metadata`` are equal between
    `self` and `other`.
  
  Parameters
  ----------
  other : Any
  
  Returns
  -------
  bool
docstr_tok: ["Check","whether","'other","'","is","equal","to","self",".","By","default",",","'other","'","is","considered","equal","if","either","*","it","'s","a","string","matching","'self.name","'",".","*","it","'s","an","instance","of","this","type","and","all","of","the","the","attributes","in","``","self._metadata","``","are","equal","between","`","self","`","and","`","other","`",".","Parameters","--","--","--","--","--","other",":","Any","Returns","--","--","--","-","bool"]
code: def __eq__(self, other):
      """Check whether 'other' is equal to self.
  
      By default, 'other' is considered equal if either
  
      * it's a string matching 'self.name'.
      * it's an instance of this type and all of the
        the attributes in ``self._metadata`` are equal between
        `self` and `other`.
  
      Parameters
      ----------
      other : Any
  
      Returns
      -------
      bool
      """
      if isinstance(other, compat.string_types):
          try:
              other = self.construct_from_string(other)
          except TypeError:
              return False
      if isinstance(other, type(self)):
          return all(
              getattr(self, attr) == getattr(other, attr)
              for attr in self._metadata
          )
      return False
  
imports: import numpy
  from pandas.errors import AbstractMethodError
  from pandas.core.dtypes.generic import ABCDataFrame, ABCIndexClass, ABCSeries
  from pandas import compat
label_desc: Use image node_id 1 for calling the _DtypeOpsMixin obj's underlying member method code with example usage: obj.__eq__(other) and returns: False, all, False