def is_dtype_equal(self, other):
    '\n        Returns True if categoricals are the same dtype\n          same categories, and same ordered\n\n        Parameters\n        ----------\n        other : Categorical\n\n        Returns\n        -------\n        are_equal : boolean\n        '
    try:
        return (hash(self.dtype) == hash(other.dtype))
    except (AttributeError, TypeError):
        return False
Returns True if categoricals are the same dtype
  same categories, and same ordered

Parameters
----------
other : Categorical

Returns
-------
are_equal : boolean
def is_dtype_equal(self, other):
    '\n        Returns True if categoricals are the same dtype\n          same categories, and same ordered\n\n        Parameters\n        ----------\n        other : Categorical\n\n        Returns\n        -------\n        are_equal : boolean\n        '
    try:
        return (hash(self.dtype) == hash(other.dtype))
    except (AttributeError, TypeError):
        return False