code: def can_compare_pairwise(self):
          
          if self.ndim != 2:
              return False
  
          return all(dt in DT.ALLOWED_PAIRWISE_TYPES for dt in self.dim_types)
docs: 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).