def _is_comparable_dtype(self, dtype: DtypeObj) -> bool:
    '\n        Can we compare values of the given dtype to our own?\n        '
    if (not isinstance(dtype, PeriodDtype)):
        return False
    return (dtype.freq == self.freq)
Can we compare values of the given dtype to our own?
def _is_comparable_dtype(self, dtype: DtypeObj) -> bool:
    '\n        \n        '
    if (not isinstance(dtype, PeriodDtype)):
        return False
    return (dtype.freq == self.freq)