def can_compare_pairwise(self):
        """Return bool indicating if slice can compute pairwise comparisons.

        Currently, only the CAT x CAT slice can compute pairwise comparisons. This also
        includes the categorical array categories dimnension (CA_CAT).
        """
        if self.ndim != 2:
            return False

        return all(dt in DT.ALLOWED_PAIRWISE_TYPES for dt in self.dim_types)
Return bool indicating if slice can compute pairwise comparisons.

        Currently, only the CAT x CAT slice can compute pairwise comparisons. This also
        includes the categorical array categories dimnension (CA_CAT).