Пример #1
0
 def _equal_values(self, other) -> bool:
     """
     Used in .equals defined in base class. Only check the column values
     assuming shape and indexes have already been checked.
     """
     for left, right in zip(self.arrays, other.arrays):
         if not array_equals(left, right):
             return False
     else:
         return True
Пример #2
0
 def _equal_values(self, other) -> bool:
     """
     Used in .equals defined in base class. Only check the column values
     assuming shape and indexes have already been checked.
     """
     for left, right in zip(self.arrays, other.arrays):
         # error: Value of type variable "ArrayLike" of "array_equals" cannot be
         # "Union[Any, ndarray, ExtensionArray]"
         if not array_equals(left, right):  # type: ignore[type-var]
             return False
     else:
         return True